Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove option for pcre from cmake files and from sources.
[simgrid.git] / buildtools / Cmake / MakeLibWin.cmake
1 ### Make Libs\r
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
5 \r
6 if(MSVC)\r
7     set_target_properties(gras     PROPERTIES COMPILE_FLAGS "/D _XBT_DLL_STATIC"\r
8                                                      OUTPUT_NAME   "gras")\r
9     set_target_properties(simgrid  PROPERTIES COMPILE_FLAGS "/D _XBT_DLL_STATIC"\r
10                                                      OUTPUT_NAME   "simgrid")\r
11 else(MSVC)\r
12     if(CMAKE_COMPILER_IS_GNUCC)\r
13         set_target_properties(gras     PROPERTIES COMPILE_FLAGS "-D_XBT_DLL_STATIC"\r
14                                                          OUTPUT_NAME   "gras")\r
15         set_target_properties(simgrid  PROPERTIES COMPILE_FLAGS "-D_XBT_DLL_STATIC"\r
16                                                          OUTPUT_NAME   "simgrid")\r
17     else(CMAKE_COMPILER_IS_GNUCC)\r
18         message(FATAL_ERROR "Compilateur non connu!!!")\r
19     endif(CMAKE_COMPILER_IS_GNUCC)\r
20 endif(MSVC)\r
21 \r
22 set(GRAS_DEP "ws2_32")\r
23 set(SIMGRID_DEP "ws2_32 -lpcre")\r
24 \r
25 target_link_libraries(simgrid   ${SIMGRID_DEP})\r
26 target_link_libraries(gras      ${GRAS_DEP})\r