Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a6a544bbe03650006ae12f14160710cd3eae496d
[simgrid.git] / teshsuite / 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   add_executable(alltoall2 alltoall2.c )
15   add_executable(alltoall_basic alltoall_basic.c)
16   add_executable(alltoallv alltoallv.c)
17   add_executable(allreduce allreduce.c)
18   add_executable(bcast bcast.c)
19   add_executable(compute compute.c)
20   add_executable(compute2 compute2.c)
21   add_executable(compute3 compute3.c)
22   add_executable(pingpong pingpong.c)
23   add_executable(scatter scatter.c)
24   add_executable(reduce reduce.c)
25   add_executable(split split.c)
26   add_executable(smpi_sendrecv sendrecv.c)
27   add_executable(ttest01 ttest01.c)
28   add_executable(vector_test vector_test.c)
29   add_executable(hvector_test hvector_test.c)
30   add_executable(indexed_test indexed_test.c)
31   add_executable(struct_test struct_test.c)
32
33   target_link_libraries(alltoall2 simgrid smpi )
34   target_link_libraries(alltoall_basic simgrid smpi )
35   target_link_libraries(alltoallv simgrid smpi )
36   target_link_libraries(allreduce simgrid smpi )
37   target_link_libraries(bcast simgrid smpi )
38   target_link_libraries(compute simgrid smpi )
39   target_link_libraries(compute2 simgrid smpi )
40   target_link_libraries(compute3 simgrid smpi )
41   target_link_libraries(pingpong simgrid smpi )
42   target_link_libraries(scatter simgrid smpi )
43   target_link_libraries(reduce simgrid smpi )
44   target_link_libraries(split simgrid smpi )
45   target_link_libraries(smpi_sendrecv simgrid smpi )
46   target_link_libraries(ttest01 simgrid smpi )
47   target_link_libraries(vector_test simgrid smpi )
48   target_link_libraries(hvector_test simgrid smpi )
49   target_link_libraries(indexed_test simgrid smpi )
50   target_link_libraries(struct_test simgrid smpi )
51
52   set_target_properties(smpi_sendrecv PROPERTIES RENAME sendrecv)
53
54   if(NOT WIN32)
55     add_executable(dsend dsend.c)
56     target_link_libraries(dsend m simgrid smpi )
57   endif()
58
59 endif()
60
61
62 set(tesh_files
63   ${tesh_files}
64   ${CMAKE_CURRENT_SOURCE_DIR}/bcast.tesh
65   ${CMAKE_CURRENT_SOURCE_DIR}/compute.tesh
66   ${CMAKE_CURRENT_SOURCE_DIR}/hvector.tesh
67   ${CMAKE_CURRENT_SOURCE_DIR}/indexed.tesh
68   ${CMAKE_CURRENT_SOURCE_DIR}/pt2pt.tesh
69   ${CMAKE_CURRENT_SOURCE_DIR}/reduce.tesh
70   ${CMAKE_CURRENT_SOURCE_DIR}/struct.tesh
71   ${CMAKE_CURRENT_SOURCE_DIR}/vector.tesh  
72   PARENT_SCOPE
73   )
74 set(xml_files
75   ${xml_files}
76   PARENT_SCOPE
77   )
78 set(examples_src
79   ${examples_src}
80   ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv.c
81   ${CMAKE_CURRENT_SOURCE_DIR}/get_processor_name.c
82   ${CMAKE_CURRENT_SOURCE_DIR}/pingpong.c
83   ${CMAKE_CURRENT_SOURCE_DIR}/bcast.c
84   ${CMAKE_CURRENT_SOURCE_DIR}/allreduce.c
85   ${CMAKE_CURRENT_SOURCE_DIR}/alltoall_basic.c
86   ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv.c
87   ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c
88   ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c
89   ${CMAKE_CURRENT_SOURCE_DIR}/split.c
90   ${CMAKE_CURRENT_SOURCE_DIR}/dsend.c
91   ${CMAKE_CURRENT_SOURCE_DIR}/ttest01.c
92   ${CMAKE_CURRENT_SOURCE_DIR}/compute.c
93   ${CMAKE_CURRENT_SOURCE_DIR}/compute3.c
94   ${CMAKE_CURRENT_SOURCE_DIR}/alltoall2.c
95   ${CMAKE_CURRENT_SOURCE_DIR}/scatter.c
96   ${CMAKE_CURRENT_SOURCE_DIR}/sendtest.c
97   ${CMAKE_CURRENT_SOURCE_DIR}/barrier.c
98   ${CMAKE_CURRENT_SOURCE_DIR}/vector_test.c
99   ${CMAKE_CURRENT_SOURCE_DIR}/hvector_test.c
100   ${CMAKE_CURRENT_SOURCE_DIR}/indexed_test.c
101   ${CMAKE_CURRENT_SOURCE_DIR}/struct_test.c
102   PARENT_SCOPE
103   )
104 set(bin_files
105   ${bin_files}
106   ${CMAKE_CURRENT_SOURCE_DIR}/hostfile
107   PARENT_SCOPE
108   )
109 set(txt_files
110   ${txt_files}
111   
112   PARENT_SCOPE
113   )