Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Merge branch 'master' of git+ssh://scm.gforge.inria.fr//gitroot/simgrid/simgrid
[simgrid.git] / teshsuite / smpi / mpich3-test / coll / 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     set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
9   endif()
10
11   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
12   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
13   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
14
15   add_executable(allgather2 allgather2.c ../util/mtest.c)
16   add_executable(allgather3 allgather3.c ../util/mtest.c)
17   add_executable(allgatherv2 allgatherv2.c ../util/mtest.c)
18   add_executable(allgatherv3 allgatherv3.c ../util/mtest.c)
19   add_executable(allgatherv4 allgatherv4.c ../util/mtest.c)
20   add_executable(allred2 allred2.c ../util/mtest.c)
21   add_executable(allred3 allred3.c ../util/mtest.c)
22   add_executable(allred4 allred4.c ../util/mtest.c)
23   add_executable(allred5 allred5.c ../util/mtest.c)
24   add_executable(allred6 allred6.c ../util/mtest.c)
25 #  add_executable(allred allred.c ../util/mtest.c)
26   add_executable(allredmany allredmany.c ../util/mtest.c)
27   add_executable(alltoall1 alltoall1.c ../util/mtest.c)
28   add_executable(alltoallv0 alltoallv0.c ../util/mtest.c)
29   add_executable(alltoallv alltoallv.c ../util/mtest.c)
30   add_executable(alltoallw1 alltoallw1.c ../util/mtest.c)
31   add_executable(alltoallw2 alltoallw2.c ../util/mtest.c)
32   add_executable(alltoallw_zeros alltoallw_zeros.c ../util/mtest.c)
33   add_executable(bcast2 bcast2.c ../util/mtest.c)
34   add_executable(bcast3 bcast3.c ../util/mtest.c)
35   add_executable(bcasttest bcasttest.c ../util/mtest.c)
36   add_executable(bcastzerotype bcastzerotype.c ../util/mtest.c)
37   add_executable(coll10 coll10.c ../util/mtest.c)
38   add_executable(coll11 coll11.c ../util/mtest.c)
39   add_executable(coll12 coll12.c ../util/mtest.c)
40   add_executable(coll13 coll13.c ../util/mtest.c)
41   add_executable(coll2 coll2.c ../util/mtest.c)
42   add_executable(coll3 coll3.c ../util/mtest.c)
43   add_executable(coll4 coll4.c ../util/mtest.c)
44   add_executable(coll5 coll5.c ../util/mtest.c)
45   add_executable(coll6 coll6.c ../util/mtest.c)
46   add_executable(coll7 coll7.c ../util/mtest.c)
47   add_executable(coll8 coll8.c ../util/mtest.c)
48   add_executable(coll9 coll9.c ../util/mtest.c)
49   add_executable(exscan2 exscan2.c ../util/mtest.c)
50   add_executable(exscan exscan.c ../util/mtest.c)
51   add_executable(gather2 gather2.c ../util/mtest.c)
52   add_executable(gather2_save gather2_save.c ../util/mtest.c)
53   add_executable(gather gather.c ../util/mtest.c)
54   add_executable(iallred iallred.c ../util/mtest.c)
55   add_executable(ibarrier ibarrier.c ../util/mtest.c)
56   add_executable(icallgather icallgather.c ../util/mtest.c)
57   add_executable(icallgatherv icallgatherv.c ../util/mtest.c)
58   add_executable(icallreduce icallreduce.c ../util/mtest.c)
59   add_executable(icalltoall icalltoall.c ../util/mtest.c)
60   add_executable(icalltoallv icalltoallv.c ../util/mtest.c)
61   add_executable(icalltoallw icalltoallw.c ../util/mtest.c)
62   add_executable(icbarrier icbarrier.c ../util/mtest.c)
63   add_executable(icbcast icbcast.c ../util/mtest.c)
64   add_executable(icgather icgather.c ../util/mtest.c)
65   add_executable(icgatherv icgatherv.c ../util/mtest.c)
66   add_executable(icreduce icreduce.c ../util/mtest.c)
67   add_executable(icscatter icscatter.c ../util/mtest.c)
68   add_executable(icscatterv icscatterv.c ../util/mtest.c)
69   add_executable(longuser longuser.c ../util/mtest.c)
70   add_executable(nonblocking2 nonblocking2.c ../util/mtest.c)
71   add_executable(nonblocking3 nonblocking3.c ../util/mtest.c)
72   add_executable(nonblocking nonblocking.c ../util/mtest.c)
73   add_executable(opband opband.c ../util/mtest.c)
74   add_executable(opbor opbor.c ../util/mtest.c)
75   add_executable(opbxor opbxor.c ../util/mtest.c)
76   add_executable(op_commutative op_commutative.c ../util/mtest.c)
77   add_executable(opland opland.c ../util/mtest.c)
78   add_executable(oplor oplor.c ../util/mtest.c)
79   add_executable(oplxor oplxor.c ../util/mtest.c)
80   add_executable(opmax opmax.c ../util/mtest.c)
81   add_executable(opmaxloc opmaxloc.c ../util/mtest.c)
82   add_executable(opmin opmin.c ../util/mtest.c)
83   add_executable(opminloc opminloc.c ../util/mtest.c)
84   add_executable(opprod opprod.c ../util/mtest.c)
85   add_executable(opsum opsum.c ../util/mtest.c)
86   add_executable(red3 red3.c ../util/mtest.c)
87   add_executable(red4 red4.c ../util/mtest.c)
88   add_executable(redscat2 redscat2.c ../util/mtest.c)
89   add_executable(redscat3 redscat3.c ../util/mtest.c)
90   add_executable(redscatbkinter redscatbkinter.c ../util/mtest.c)
91   add_executable(redscatblk3 redscatblk3.c ../util/mtest.c)
92   add_executable(red_scat_block2 red_scat_block2.c ../util/mtest.c)
93   add_executable(red_scat_block red_scat_block.c ../util/mtest.c)
94   add_executable(redscat redscat.c ../util/mtest.c)
95   add_executable(redscatinter redscatinter.c ../util/mtest.c)
96   add_executable(reduce_mpich reduce.c ../util/mtest.c)
97   add_executable(reduce_local reduce_local.c ../util/mtest.c)
98   add_executable(scantst scantst.c ../util/mtest.c)
99   add_executable(scatter2 scatter2.c ../util/mtest.c)
100   add_executable(scatter3 scatter3.c ../util/mtest.c)
101   add_executable(scattern scattern.c ../util/mtest.c)
102   add_executable(scatterv scatterv.c ../util/mtest.c)
103   add_executable(uoplong uoplong.c ../util/mtest.c)
104
105   target_link_libraries(allgather2  simgrid)
106   target_link_libraries(allgather3  simgrid)
107   target_link_libraries(allgatherv2  simgrid)
108   target_link_libraries(allgatherv3  simgrid)
109   target_link_libraries(allgatherv4  simgrid)
110   target_link_libraries(allred2  simgrid)
111   target_link_libraries(allred3  simgrid)
112   target_link_libraries(allred4  simgrid)
113   target_link_libraries(allred5  simgrid)
114   target_link_libraries(allred6  simgrid)
115 #  target_link_libraries(allred  simgrid)
116   target_link_libraries(allredmany  simgrid)
117   target_link_libraries(alltoall1  simgrid)
118   target_link_libraries(alltoallv0  simgrid)
119   target_link_libraries(alltoallv  simgrid)
120   target_link_libraries(alltoallw1  simgrid)
121   target_link_libraries(alltoallw2  simgrid)
122   target_link_libraries(alltoallw_zeros  simgrid)
123   target_link_libraries(bcast2  simgrid)
124   target_link_libraries(bcast3  simgrid)
125   target_link_libraries(bcasttest  simgrid)
126   target_link_libraries(bcastzerotype  simgrid)
127   target_link_libraries(coll10  simgrid)
128   target_link_libraries(coll11  simgrid)
129   target_link_libraries(coll12  simgrid)
130   target_link_libraries(coll13  simgrid)
131   target_link_libraries(coll2  simgrid)
132   target_link_libraries(coll3  simgrid)
133   target_link_libraries(coll4  simgrid)
134   target_link_libraries(coll5  simgrid)
135   target_link_libraries(coll6  simgrid)
136   target_link_libraries(coll7  simgrid)
137   target_link_libraries(coll8  simgrid)
138   target_link_libraries(coll9  simgrid)
139   target_link_libraries(exscan2  simgrid)
140   target_link_libraries(exscan  simgrid)
141   target_link_libraries(gather2  simgrid)
142   target_link_libraries(gather2_save  simgrid)
143   target_link_libraries(gather  simgrid)
144   target_link_libraries(iallred  simgrid)
145   target_link_libraries(ibarrier  simgrid)
146   target_link_libraries(icallgather  simgrid)
147   target_link_libraries(icallgatherv  simgrid)
148   target_link_libraries(icallreduce  simgrid)
149   target_link_libraries(icalltoall  simgrid)
150   target_link_libraries(icalltoallv  simgrid)
151   target_link_libraries(icalltoallw  simgrid)
152   target_link_libraries(icbarrier  simgrid)
153   target_link_libraries(icbcast  simgrid)
154   target_link_libraries(icgather  simgrid)
155   target_link_libraries(icgatherv  simgrid)
156   target_link_libraries(icreduce  simgrid)
157   target_link_libraries(icscatter  simgrid)
158   target_link_libraries(icscatterv  simgrid)
159   target_link_libraries(longuser  simgrid)
160   target_link_libraries(nonblocking2  simgrid)
161   target_link_libraries(nonblocking3  simgrid)
162   target_link_libraries(nonblocking  simgrid)
163   target_link_libraries(opband  simgrid)
164   target_link_libraries(opbor  simgrid)
165   target_link_libraries(opbxor  simgrid)
166   target_link_libraries(op_commutative  simgrid)
167   target_link_libraries(opland  simgrid)
168   target_link_libraries(oplor  simgrid)
169   target_link_libraries(oplxor  simgrid)
170   target_link_libraries(opmax  simgrid)
171   target_link_libraries(opmaxloc  simgrid)
172   target_link_libraries(opmin  simgrid)
173   target_link_libraries(opminloc  simgrid)
174   target_link_libraries(opprod  simgrid)
175   target_link_libraries(opsum  simgrid)
176   target_link_libraries(red3  simgrid)
177   target_link_libraries(red4  simgrid)
178   target_link_libraries(redscat2  simgrid)
179   target_link_libraries(redscat3  simgrid)
180   target_link_libraries(redscatbkinter  simgrid)
181   target_link_libraries(redscatblk3  simgrid)
182   target_link_libraries(red_scat_block2  simgrid)
183   target_link_libraries(red_scat_block  simgrid)
184   target_link_libraries(redscat  simgrid)
185   target_link_libraries(redscatinter  simgrid)
186   target_link_libraries(reduce_mpich  simgrid)
187   target_link_libraries(reduce_local  simgrid)
188   target_link_libraries(scantst  simgrid)
189   target_link_libraries(scatter2  simgrid)
190   target_link_libraries(scatter3  simgrid)
191   target_link_libraries(scattern  simgrid)
192   target_link_libraries(scatterv  simgrid)
193   target_link_libraries(uoplong  simgrid)
194
195 endif()
196
197 set(tesh_files
198   ${tesh_files}
199   PARENT_SCOPE
200   )
201 set(xml_files
202   ${xml_files}
203   PARENT_SCOPE
204   )
205 set(examples_src
206   ${examples_src}
207  ${CMAKE_CURRENT_SOURCE_DIR}/allgather2.c 
208  ${CMAKE_CURRENT_SOURCE_DIR}/allgather3.c 
209  ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv2.c 
210  ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv3.c 
211  ${CMAKE_CURRENT_SOURCE_DIR}/allgatherv4.c 
212  ${CMAKE_CURRENT_SOURCE_DIR}/allred2.c 
213  ${CMAKE_CURRENT_SOURCE_DIR}/allred3.c 
214  ${CMAKE_CURRENT_SOURCE_DIR}/allred4.c 
215  ${CMAKE_CURRENT_SOURCE_DIR}/allred5.c 
216  ${CMAKE_CURRENT_SOURCE_DIR}/allred6.c 
217  ${CMAKE_CURRENT_SOURCE_DIR}/allred.c 
218  ${CMAKE_CURRENT_SOURCE_DIR}/allredmany.c 
219  ${CMAKE_CURRENT_SOURCE_DIR}/alltoall1.c 
220  ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv0.c 
221  ${CMAKE_CURRENT_SOURCE_DIR}/alltoallv.c 
222  ${CMAKE_CURRENT_SOURCE_DIR}/alltoallw1.c 
223  ${CMAKE_CURRENT_SOURCE_DIR}/alltoallw2.c 
224  ${CMAKE_CURRENT_SOURCE_DIR}/alltoallw_zeros.c 
225  ${CMAKE_CURRENT_SOURCE_DIR}/bcast2.c 
226  ${CMAKE_CURRENT_SOURCE_DIR}/bcast3.c 
227  ${CMAKE_CURRENT_SOURCE_DIR}/bcasttest.c 
228  ${CMAKE_CURRENT_SOURCE_DIR}/bcastzerotype.c 
229  ${CMAKE_CURRENT_SOURCE_DIR}/coll10.c 
230  ${CMAKE_CURRENT_SOURCE_DIR}/coll11.c 
231  ${CMAKE_CURRENT_SOURCE_DIR}/coll12.c 
232  ${CMAKE_CURRENT_SOURCE_DIR}/coll13.c 
233  ${CMAKE_CURRENT_SOURCE_DIR}/coll2.c 
234  ${CMAKE_CURRENT_SOURCE_DIR}/coll3.c 
235  ${CMAKE_CURRENT_SOURCE_DIR}/coll4.c 
236  ${CMAKE_CURRENT_SOURCE_DIR}/coll5.c 
237  ${CMAKE_CURRENT_SOURCE_DIR}/coll6.c 
238  ${CMAKE_CURRENT_SOURCE_DIR}/coll7.c 
239  ${CMAKE_CURRENT_SOURCE_DIR}/coll8.c 
240  ${CMAKE_CURRENT_SOURCE_DIR}/coll9.c 
241  ${CMAKE_CURRENT_SOURCE_DIR}/exscan2.c 
242  ${CMAKE_CURRENT_SOURCE_DIR}/exscan.c 
243  ${CMAKE_CURRENT_SOURCE_DIR}/gather2.c 
244  ${CMAKE_CURRENT_SOURCE_DIR}/gather2_save.c 
245  ${CMAKE_CURRENT_SOURCE_DIR}/gather.c 
246  ${CMAKE_CURRENT_SOURCE_DIR}/iallred.c 
247  ${CMAKE_CURRENT_SOURCE_DIR}/ibarrier.c 
248  ${CMAKE_CURRENT_SOURCE_DIR}/icallgather.c 
249  ${CMAKE_CURRENT_SOURCE_DIR}/icallgatherv.c 
250  ${CMAKE_CURRENT_SOURCE_DIR}/icallreduce.c 
251  ${CMAKE_CURRENT_SOURCE_DIR}/icalltoall.c 
252  ${CMAKE_CURRENT_SOURCE_DIR}/icalltoallv.c 
253  ${CMAKE_CURRENT_SOURCE_DIR}/icalltoallw.c 
254  ${CMAKE_CURRENT_SOURCE_DIR}/icbarrier.c 
255  ${CMAKE_CURRENT_SOURCE_DIR}/icbcast.c 
256  ${CMAKE_CURRENT_SOURCE_DIR}/icgather.c 
257  ${CMAKE_CURRENT_SOURCE_DIR}/icgatherv.c 
258  ${CMAKE_CURRENT_SOURCE_DIR}/icreduce.c 
259  ${CMAKE_CURRENT_SOURCE_DIR}/icscatter.c 
260  ${CMAKE_CURRENT_SOURCE_DIR}/icscatterv.c 
261  ${CMAKE_CURRENT_SOURCE_DIR}/longuser.c 
262  ${CMAKE_CURRENT_SOURCE_DIR}/nonblocking2.c 
263  ${CMAKE_CURRENT_SOURCE_DIR}/nonblocking3.c 
264  ${CMAKE_CURRENT_SOURCE_DIR}/nonblocking.c 
265  ${CMAKE_CURRENT_SOURCE_DIR}/opband.c 
266  ${CMAKE_CURRENT_SOURCE_DIR}/opbor.c 
267  ${CMAKE_CURRENT_SOURCE_DIR}/opbxor.c 
268  ${CMAKE_CURRENT_SOURCE_DIR}/op_commutative.c 
269  ${CMAKE_CURRENT_SOURCE_DIR}/opland.c 
270  ${CMAKE_CURRENT_SOURCE_DIR}/oplor.c 
271  ${CMAKE_CURRENT_SOURCE_DIR}/oplxor.c 
272  ${CMAKE_CURRENT_SOURCE_DIR}/opmax.c 
273  ${CMAKE_CURRENT_SOURCE_DIR}/opmaxloc.c 
274  ${CMAKE_CURRENT_SOURCE_DIR}/opmin.c 
275  ${CMAKE_CURRENT_SOURCE_DIR}/opminloc.c 
276  ${CMAKE_CURRENT_SOURCE_DIR}/opprod.c 
277  ${CMAKE_CURRENT_SOURCE_DIR}/opsum.c 
278  ${CMAKE_CURRENT_SOURCE_DIR}/red3.c 
279  ${CMAKE_CURRENT_SOURCE_DIR}/red4.c 
280  ${CMAKE_CURRENT_SOURCE_DIR}/redscat2.c 
281  ${CMAKE_CURRENT_SOURCE_DIR}/redscat3.c 
282  ${CMAKE_CURRENT_SOURCE_DIR}/redscatbkinter.c 
283  ${CMAKE_CURRENT_SOURCE_DIR}/redscatblk3.c 
284  ${CMAKE_CURRENT_SOURCE_DIR}/red_scat_block2.c 
285  ${CMAKE_CURRENT_SOURCE_DIR}/red_scat_block.c 
286  ${CMAKE_CURRENT_SOURCE_DIR}/redscat.c 
287  ${CMAKE_CURRENT_SOURCE_DIR}/redscatinter.c 
288  ${CMAKE_CURRENT_SOURCE_DIR}/reduce.c 
289  ${CMAKE_CURRENT_SOURCE_DIR}/reduce_local.c 
290  ${CMAKE_CURRENT_SOURCE_DIR}/scantst.c 
291  ${CMAKE_CURRENT_SOURCE_DIR}/scatter2.c 
292  ${CMAKE_CURRENT_SOURCE_DIR}/scatter3.c 
293  ${CMAKE_CURRENT_SOURCE_DIR}/scattern.c 
294  ${CMAKE_CURRENT_SOURCE_DIR}/scatterv.c 
295  ${CMAKE_CURRENT_SOURCE_DIR}/uoplong.c 
296   PARENT_SCOPE
297   )
298 set(bin_files
299   ${bin_files}
300   PARENT_SCOPE
301   )
302 set(txt_files
303   ${txt_files}
304   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
305   PARENT_SCOPE
306   )