Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
eda1d8214e1b2d2446b830688a5cb15f1a25707c
[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
14
15   add_executable(bcbench bcbench.c)
16   add_executable(mvmul mvmul.c)
17   add_executable(smpi_traced tracing/smpi_traced.c)
18   add_executable(smpi_traced_simple tracing/smpi_traced_simple.c)
19   add_executable(mc_bugged1 mc_bugged1.c)
20   add_executable(mc_bugged2 mc_bugged2.c)
21   add_executable(smpi_replay replay/replay.c)
22
23   target_link_libraries(bcbench simgrid smpi )
24   target_link_libraries(mvmul simgrid smpi )
25   target_link_libraries(smpi_traced simgrid smpi )
26   target_link_libraries(smpi_traced_simple simgrid smpi )
27   target_link_libraries(mc_bugged1 simgrid smpi )
28   target_link_libraries(mc_bugged2 simgrid smpi )
29   target_link_libraries(smpi_replay simgrid smpi )
30
31 endif()
32
33 set(tesh_files
34   ${tesh_files}
35   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.tesh
36   ${CMAKE_CURRENT_SOURCE_DIR}/replay/smpi_replay.tesh
37   PARENT_SCOPE
38   )
39 set(xml_files
40   ${xml_files}
41   ${CMAKE_CURRENT_SOURCE_DIR}/replay/replay_platform.xml
42   PARENT_SCOPE
43   )
44 set(examples_src
45   ${examples_src}
46   ${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged2.c
47   ${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged1.c
48   ${CMAKE_CURRENT_SOURCE_DIR}/mvmul.c
49   ${CMAKE_CURRENT_SOURCE_DIR}/bcbench.c
50   ${CMAKE_CURRENT_SOURCE_DIR}/replay/replay.c
51   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.c
52   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced_simple.c
53   PARENT_SCOPE
54   )
55 set(bin_files
56   ${bin_files}
57   ${CMAKE_CURRENT_SOURCE_DIR}/hostfile
58   PARENT_SCOPE
59   )
60 set(txt_files
61   ${txt_files}
62   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions0.txt
63   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions1.txt
64   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_allReduce.txt
65   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_alltoall.txt
66   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_alltoallv.txt
67   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_barrier.txt
68   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_bcast.txt
69   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_bcast_reduce_datatypes.txt
70   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_waitall.txt
71   ${CMAKE_CURRENT_SOURCE_DIR}/replay/actions_with_isend.txt
72   ${CMAKE_CURRENT_SOURCE_DIR}/replay/split_traces
73   PARENT_SCOPE
74   )