2 #>gcc c:\simgrid-trunk\examples\msg\icomms\peer.c -static -Lc:\simgrid-trunk\lib -lsimgrid -Ic:\simgrid-trunk\include -lwsock32
\r
3 add_library(simgrid STATIC ${simgrid_sources})
\r
4 add_library(gras STATIC ${gras_sources})
\r
6 if(CMAKE_COMPILER_IS_GNUCC)
\r
7 set_target_properties(gras PROPERTIES COMPILE_FLAGS "-D_XBT_DLL_STATIC"
\r
9 set_target_properties(simgrid PROPERTIES COMPILE_FLAGS "-D_XBT_DLL_STATIC"
\r
10 OUTPUT_NAME "simgrid")
\r
11 endif(CMAKE_COMPILER_IS_GNUCC)
\r
13 set(GRAS_DEP "ws2_32 -lpthread")
\r
14 set(SIMGRID_DEP "ws2_32 -lpcre -lpthread")
\r
16 target_link_libraries(simgrid ${SIMGRID_DEP})
\r
17 target_link_libraries(gras ${GRAS_DEP})
\r