Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add link to documentation in Changelog
[simgrid.git] / examples / smpi / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi)
4   if(WIN32)
5     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
6   else()
7     set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
8   endif()
9
10   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
11
12   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
13   file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/mc/")
14
15
16   add_executable(bcbench bcbench.c)
17   add_executable(mvmul mvmul.c)
18   add_executable(smpi_traced tracing/smpi_traced.c)
19   add_executable(smpi_traced_simple tracing/smpi_traced_simple.c)
20   add_executable(smpi_replay replay/replay.c)
21   
22   if(HAVE_MC)
23     add_executable(mc/bugged1 mc/bugged1.c)
24     add_executable(mc/bugged2 mc/bugged2.c)
25     add_executable(mc/bugged1_liveness mc/bugged1_liveness.c)
26     add_executable(mc/send_deterministic mc/send_deterministic.c)
27     add_executable(mc/non_deterministic mc/non_deterministic.c)
28     add_executable(mc/mutual_exclusion mc/mutual_exclusion.c)
29   
30     target_link_libraries(mc/bugged1 simgrid)
31     target_link_libraries(mc/bugged2 simgrid)
32     target_link_libraries(mc/bugged1_liveness simgrid)
33     target_link_libraries(mc/send_deterministic simgrid)
34     target_link_libraries(mc/non_deterministic simgrid)
35     target_link_libraries(mc/mutual_exclusion simgrid)
36   endif()
37   
38   target_link_libraries(bcbench simgrid)
39   target_link_libraries(mvmul simgrid)
40   target_link_libraries(smpi_traced simgrid)
41   target_link_libraries(smpi_traced_simple simgrid)
42   target_link_libraries(smpi_replay simgrid)
43
44 endif()
45
46 set(tesh_files
47   ${tesh_files}
48   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.tesh
49   ${CMAKE_CURRENT_SOURCE_DIR}/replay/smpi_replay.tesh
50   PARENT_SCOPE
51   )
52 set(xml_files
53   ${xml_files}
54   ${CMAKE_CURRENT_SOURCE_DIR}/replay/replay_platform.xml
55   PARENT_SCOPE
56   )
57 set(examples_src
58   ${examples_src}
59   ${CMAKE_CURRENT_SOURCE_DIR}/mvmul.c
60   ${CMAKE_CURRENT_SOURCE_DIR}/bcbench.c
61   ${CMAKE_CURRENT_SOURCE_DIR}/replay/replay.c
62   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.c
63   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced_simple.c
64   ${CMAKE_CURRENT_SOURCE_DIR}/mc/bugged2.c
65   ${CMAKE_CURRENT_SOURCE_DIR}/mc/bugged1.c
66   ${CMAKE_CURRENT_SOURCE_DIR}/mc/bugged1_liveness.c
67   ${CMAKE_CURRENT_SOURCE_DIR}/mc/send_deterministic.c
68   ${CMAKE_CURRENT_SOURCE_DIR}/mc/non_deterministic.c
69   ${CMAKE_CURRENT_SOURCE_DIR}/mc/mutual_exclusion.c
70   PARENT_SCOPE
71   )
72 set(bin_files
73   ${bin_files}
74   ${CMAKE_CURRENT_SOURCE_DIR}/hostfile
75   ${CMAKE_CURRENT_SOURCE_DIR}/mc/promela_bugged1_liveness
76   ${CMAKE_CURRENT_SOURCE_DIR}/mc/hostfile_bugged1_liveness
77   ${CMAKE_CURRENT_SOURCE_DIR}/mc/hostfile_bugged1
78   ${CMAKE_CURRENT_SOURCE_DIR}/mc/hostfile_bugged2
79   ${CMAKE_CURRENT_SOURCE_DIR}/mc/hostfile_send_deterministic
80   ${CMAKE_CURRENT_SOURCE_DIR}/mc/hostfile_non_deterministic
81   ${CMAKE_CURRENT_SOURCE_DIR}/mc/hostfile_mutual_exclusion      
82   PARENT_SCOPE
83   )
84 set(txt_files
85   ${txt_files}
86   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions0.txt
87   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions1.txt
88   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_allReduce.txt
89   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_allgatherv.txt
90   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_alltoall.txt
91   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_alltoallv.txt
92   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_barrier.txt
93   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_bcast.txt
94   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_bcast_reduce_datatypes.txt
95   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_gather.txt
96   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_reducescatter.txt
97   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_waitall.txt
98   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_with_isend.txt
99   ${CMAKE_CURRENT_SOURCE_DIR}/replay/split_traces
100   PARENT_SCOPE
101   )