Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
1d9cc9e34b9c7640f6b9e56132d2234e1f130d7c
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / coll / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_F2C)
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/smpif90")
9   endif()
10
11   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
12   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
13
14   add_executable(allredint8f90 allredint8f90.f90 ../util/mtestf90.f90)
15   add_executable(allredopttf90 allredopttf90.f90 ../util/mtestf90.f90)
16   add_executable(alltoallvf90 alltoallvf90.f90 ../util/mtestf90.f90)
17   add_executable(alltoallwf90 alltoallwf90.f90 ../util/mtestf90.f90)
18   add_executable(exscanf90 exscanf90.f90 ../util/mtestf90.f90)
19   add_executable(inplacef90 inplacef90.f90 ../util/mtestf90.f90)
20  # add_executable(nonblockingf90 nonblockingf90.f90 ../util/mtestf90.f90)
21  # add_executable(nonblocking_inpf90 nonblocking_inpf90.f90 ../util/mtestf90.f90)
22   add_executable(red_scat_blockf90 red_scat_blockf90.f90 ../util/mtestf90.f90)
23   add_executable(redscatf90 redscatf90.f90 ../util/mtestf90.f90)
24   add_executable(reducelocalf90 reducelocalf90.f90 ../util/mtestf90.f90)
25   add_executable(split_typef90 split_typef90.f90 ../util/mtestf90.f90)
26   add_executable(uallreducef90 uallreducef90.f90 ../util/mtestf90.f90)
27   add_executable(vw_inplacef90 vw_inplacef90.f90 ../util/mtestf90.f90)
28   target_link_libraries(allredint8f90  simgrid)
29   target_link_libraries(allredopttf90  simgrid)
30   target_link_libraries(alltoallvf90  simgrid)
31   target_link_libraries(alltoallwf90  simgrid)
32   target_link_libraries(exscanf90  simgrid)
33   target_link_libraries(inplacef90  simgrid)
34  # target_link_libraries(nonblockingf90  simgrid)
35  # target_link_libraries(nonblocking_inpf90  simgrid)
36   target_link_libraries(red_scat_blockf90  simgrid)
37   target_link_libraries(redscatf90  simgrid)
38   target_link_libraries(reducelocalf90  simgrid)
39   target_link_libraries(split_typef90  simgrid)
40   target_link_libraries(uallreducef90  simgrid)
41   target_link_libraries(vw_inplacef90  simgrid)
42
43 endif()
44
45 set(tesh_files
46   ${tesh_files}
47   PARENT_SCOPE
48   )
49 set(xml_files
50   ${xml_files}
51   PARENT_SCOPE
52   )
53 set(examples_src
54   ${examples_src}
55   ${CMAKE_CURRENT_SOURCE_DIR}/allredint8f90.f90
56   ${CMAKE_CURRENT_SOURCE_DIR}/allredopttf90.f90
57   ${CMAKE_CURRENT_SOURCE_DIR}/alltoallvf90.f90
58   ${CMAKE_CURRENT_SOURCE_DIR}/alltoallwf90.f90
59   ${CMAKE_CURRENT_SOURCE_DIR}/exscanf90.f90
60   ${CMAKE_CURRENT_SOURCE_DIR}/inplacef90.f90
61   ${CMAKE_CURRENT_SOURCE_DIR}/nonblockingf90.f90
62   ${CMAKE_CURRENT_SOURCE_DIR}/nonblocking_inpf90.f90
63   ${CMAKE_CURRENT_SOURCE_DIR}/red_scat_blockf90.f90
64   ${CMAKE_CURRENT_SOURCE_DIR}/redscatf90.f90
65   ${CMAKE_CURRENT_SOURCE_DIR}/reducelocalf90.f90
66   ${CMAKE_CURRENT_SOURCE_DIR}/split_typef90.f90
67   ${CMAKE_CURRENT_SOURCE_DIR}/uallreducef90.f90
68   ${CMAKE_CURRENT_SOURCE_DIR}/vw_inplacef90.f90
69   PARENT_SCOPE
70   )
71 set(bin_files
72   ${bin_files}
73   PARENT_SCOPE
74   )
75 set(txt_files
76   ${txt_files}
77   ${CMAKE_CURRENT_SOURCE_DIR}/../util/mtestf90.f90
78   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
79   PARENT_SCOPE
80   )