Logo AND Algorithmique Numérique Distribuée

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