Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Definitively remove old variable PROJECT_DIRECTORY for CMAKE_HOME_DIRECTORY.
[simgrid.git] / buildtools / Cmake / MakeExeLibWin.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 "wsock32")\r
23 set(SIMGRID_DEP "wsock32")\r
24 \r
25 target_link_libraries(simgrid   ${SIMGRID_DEP})\r
26 target_link_libraries(gras      ${GRAS_DEP})\r
27 \r
28 ### Make EXEs\r
29 \r
30 #src/testall\r
31 add_subdirectory(${CMAKE_HOME_DIRECTORY}/src)\r
32 \r
33 #tools/gras\r
34 add_subdirectory(${CMAKE_HOME_DIRECTORY}/tools/gras)\r
35 \r
36 #tools/tesh\r
37 #add_subdirectory(${CMAKE_HOME_DIRECTORY}/tools/tesh)\r
38 \r
39 #testsuite/xbt\r
40 add_subdirectory(${CMAKE_HOME_DIRECTORY}/testsuite/xbt)\r
41 \r
42 #testsuite/surf\r
43 add_subdirectory(${CMAKE_HOME_DIRECTORY}/testsuite/surf)\r
44 \r
45 #testsuite/simdag\r
46 add_subdirectory(${CMAKE_HOME_DIRECTORY}/testsuite/simdag)\r
47 \r
48 #teshsuite\r
49 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/xbt)\r
50 #add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/gras/datadesc)\r
51 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/gras/msg_handle)\r
52 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/gras/empty_main)\r
53 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/gras/small_sleep)\r
54 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag)\r
55 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/network)\r
56 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/network/p2p)\r
57 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/network/mxn)\r
58 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/partask)\r
59 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/simdag/platforms)\r
60 add_subdirectory(${CMAKE_HOME_DIRECTORY}/teshsuite/msg)\r
61 \r
62 #examples\r
63 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/ping)\r
64 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/rpc)\r
65 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/spawn)\r
66 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/timer)\r
67 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/chrono)\r
68 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/mutual_exclusion/simple_token)\r
69 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/mmrpc)\r
70 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/all2all)\r
71 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/pmm)\r
72 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/synchro)\r
73 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/properties)\r
74 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/gras/console)\r
75 \r
76 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/properties)\r
77 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/actions)\r
78 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/migration)\r
79 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/sendrecv)\r
80 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/suspend)\r
81 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/parallel_task)\r
82 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/priority)\r
83 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/masterslave)\r
84 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/trace)\r
85 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/tracing)\r
86 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/icomms)\r
87 \r
88 if(HAVE_MC)\r
89         add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/mc)\r
90 endif(HAVE_MC)\r
91 \r
92 if(HAVE_GTNETS)\r
93         add_definitions("-lgtnets -L${gtnets_path}/lib -I${gtnets_path}/include/gtnets")\r
94         add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/msg/gtnets)\r
95 endif(HAVE_GTNETS)\r
96 \r
97 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/amok/bandwidth)\r
98 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/amok/saturate)\r
99 \r
100 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/simdag)\r
101 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/simdag/dax)\r
102 if(HAVE_GRAPHVIZ)\r
103   add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/simdag/dot)\r
104 endif(HAVE_GRAPHVIZ)\r
105 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/simdag/metaxml)\r
106 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/simdag/properties)\r
107 add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/simdag/scheduling)\r
108 if(enable_smpi)\r
109         add_subdirectory(${CMAKE_HOME_DIRECTORY}/examples/smpi)\r
110 endif(enable_smpi)