Logo AND Algorithmique Numérique Distribuée

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