Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
74b267df372ad5d8dab5cf4b5d0af2068a4032dc
[simgrid.git] / teshsuite / smpi / mpich-test / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 set(tesh_files
4   ${tesh_files}
5   PARENT_SCOPE
6   )
7 set(xml_files
8   ${xml_files}
9   PARENT_SCOPE
10   )
11 set(examples_src
12   ${examples_src}
13   PARENT_SCOPE
14   )
15 set(bin_files
16   ${bin_files}
17   PARENT_SCOPE
18   )
19   
20 set(stdo_std_smpi
21   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/attrt.std
22   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/attrerr.std
23   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/context.std
24   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/context/commnames.std
25   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/self.std
26   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sndrcvrep.std
27   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/waitany.std
28   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/reqcreate.std
29   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/persistent.std
30   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/allpair2.std
31   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typeub3.std
32   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/waitall.std
33   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nullproc2.std
34   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/allpair.std
35   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/hindexed.std
36   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/ssendtest2.std
37   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sendmany.std
38   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nullproc.std
39   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nbtest.std
40   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/sendcplx.stdo
41   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/hvec.std
42   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typebase.std
43   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typeub2.std
44   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/structf.std
45   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/typecreate.std
46   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/pt2pt/nblock.std
47   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/cartmap.std
48   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/graphtest.std
49   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/topol/cartf.std
50   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/aborttest.std
51   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/errstringsf.std
52   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/env/env.std
53   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/profile/ptest.std
54   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredmany.std
55   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/allredf.std
56   ${CMAKE_CURRENT_SOURCE_DIR}/mpich-test/coll/scatterv.std
57 )
58
59 if("${CMAKE_BINARY_DIR}" STREQUAL "${CMAKE_HOME_DIRECTORY}")
60 else()
61     foreach(srcfile ${stdo_std_smpi})
62         set(dstfile ${srcfile})
63         string(REPLACE "${CMAKE_HOME_DIRECTORY}" "${CMAKE_BINARY_DIR}" dst_file "${dstfile}")
64         #message("copy ${srcfile} to ${dstfile}")
65         file(COPY ${srcfile} DESTINATION ${dst_file})
66     endforeach()
67 endif()
68
69 set(txt_files
70   ${txt_files}
71   ${stdo_std_smpi}
72   PARENT_SCOPE
73   )