Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
1c950f38670012241f983d6e1576fc1cb9f4f983
[simgrid.git] / examples / smpi / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi)
4   set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/bin/smpicc")
5
6   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
7
8   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
9
10   add_executable(alltoall2 alltoall2.c )
11   add_executable(alltoall_basic alltoall_basic.c)
12   add_executable(alltoallv alltoallv.c)
13   add_executable(allreduce allreduce.c)
14   add_executable(bcast bcast.c)
15   add_executable(bcbench bcbench.c)
16   add_executable(compute compute.c)
17   add_executable(compute2 compute2.c)
18   add_executable(compute3 compute3.c)
19   add_executable(pingpong pingpong.c)
20   add_executable(scatter scatter.c)
21   add_executable(reduce reduce.c)
22   add_executable(split split.c)
23   add_executable(dsend dsend.c)
24   add_executable(mvmul mvmul.c)
25   add_executable(smpi_sendrecv sendrecv.c)
26   add_executable(smpi_traced tracing/smpi_traced.c)
27   add_executable(smpi_traced_simple tracing/smpi_traced_simple.c)
28   add_executable(ttest01 ttest01.c)
29   add_executable(mc_bugged1 mc_bugged1.c)
30   add_executable(mc_bugged2 mc_bugged2.c)
31
32   target_link_libraries(alltoall2 m simgrid smpi )
33   target_link_libraries(alltoall_basic m simgrid smpi )
34   target_link_libraries(alltoallv m simgrid smpi )
35   target_link_libraries(allreduce m simgrid smpi )
36   target_link_libraries(bcast m simgrid smpi )
37   target_link_libraries(bcbench m simgrid smpi )
38   target_link_libraries(compute m simgrid smpi )
39   target_link_libraries(compute2 m simgrid smpi )
40   target_link_libraries(compute3 m simgrid smpi )
41   target_link_libraries(pingpong m simgrid smpi )
42   target_link_libraries(scatter m simgrid smpi )
43   target_link_libraries(reduce m simgrid smpi )
44   target_link_libraries(split m simgrid smpi )
45   target_link_libraries(dsend m simgrid smpi )
46   target_link_libraries(mvmul m simgrid smpi )
47   target_link_libraries(smpi_sendrecv m simgrid smpi )
48   target_link_libraries(smpi_traced m simgrid smpi )
49   target_link_libraries(smpi_traced_simple m simgrid smpi )
50   target_link_libraries(ttest01 m simgrid smpi )
51   target_link_libraries(mc_bugged1 m simgrid smpi )
52   target_link_libraries(mc_bugged2 m simgrid smpi )
53
54   set_target_properties(smpi_sendrecv PROPERTIES RENAME sendrecv)
55 endif(enable_smpi)
56
57 set(tesh_files
58   ${tesh_files}
59   ${CMAKE_CURRENT_SOURCE_DIR}/bcast.tesh
60   ${CMAKE_CURRENT_SOURCE_DIR}/reduce.tesh
61   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.tesh
62   PARENT_SCOPE
63   )
64 set(xml_files
65   ${xml_files}
66   PARENT_SCOPE
67   )
68 set(examples_src
69   ${examples_src}
70   ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv.c
71   ${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged2.c
72   ${CMAKE_CURRENT_SOURCE_DIR}/get_processor_name.c
73   ${CMAKE_CURRENT_SOURCE_DIR}/pingpong.c
74   ${CMAKE_CURRENT_SOURCE_DIR}/bcast.c
75   ${CMAKE_CURRENT_SOURCE_DIR}/allreduce.c
76   ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_basic.c
77   ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv.c
78   ${CMAKE_CURRENT_SOURCE_DIR}/mc_bugged1.c
79   ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c
80   ${CMAKE_CURRENT_SOURCE_DIR}/mvmul.c
81   ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c
82   ${CMAKE_CURRENT_SOURCE_DIR}/split.c
83   ${CMAKE_CURRENT_SOURCE_DIR}/dsend.c
84   ${CMAKE_CURRENT_SOURCE_DIR}/ttest01.c
85   ${CMAKE_CURRENT_SOURCE_DIR}/compute.c
86   ${CMAKE_CURRENT_SOURCE_DIR}/compute3.c
87   ${CMAKE_CURRENT_SOURCE_DIR}/alltoall2.c
88   ${CMAKE_CURRENT_SOURCE_DIR}/scatter.c
89   ${CMAKE_CURRENT_SOURCE_DIR}/sendtest.c
90   ${CMAKE_CURRENT_SOURCE_DIR}/barrier.c
91   ${CMAKE_CURRENT_SOURCE_DIR}/bcbench.c
92   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced.c
93   ${CMAKE_CURRENT_SOURCE_DIR}/tracing/smpi_traced_simple.c
94   PARENT_SCOPE
95   )
96 set(bin_files
97   ${bin_files}
98   ${CMAKE_CURRENT_SOURCE_DIR}/hostfile
99   PARENT_SCOPE
100   )
101 set(txt_files
102   ${txt_files}
103   PARENT_SCOPE
104   )