Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
682e23c7f2ee753ce89d8e1b1b4026643c3d1d10
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / pt2pt / 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(allpairf90 allpairf90.f90 ../util/mtestf90.f90)
15   add_executable(greqf90 greqf90.f90 dummyf90.f90 ../util/mtestf90.f90)
16 #  add_executable(mprobef90 mprobef90.f90 ../util/mtestf90.f90)
17   add_executable(statusesf90 statusesf90.f90 ../util/mtestf90.f90)
18   target_link_libraries(allpairf90  simgrid)
19   target_link_libraries(greqf90  simgrid)
20 #  target_link_libraries(mprobef90  simgrid)
21   target_link_libraries(statusesf90  simgrid)
22
23 endif()
24
25 set(tesh_files
26   ${tesh_files}
27   PARENT_SCOPE
28   )
29 set(xml_files
30   ${xml_files}
31   PARENT_SCOPE
32   )
33 set(examples_src
34   ${examples_src}
35   ${CMAKE_CURRENT_SOURCE_DIR}/allpairf90.f90
36   ${CMAKE_CURRENT_SOURCE_DIR}/dummyf90.f90
37   ${CMAKE_CURRENT_SOURCE_DIR}/greqf90.f90
38   ${CMAKE_CURRENT_SOURCE_DIR}/mprobef90.f90
39   ${CMAKE_CURRENT_SOURCE_DIR}/statusesf90.f90
40   PARENT_SCOPE
41   )
42 set(bin_files
43   ${bin_files}
44   PARENT_SCOPE
45   )
46 set(txt_files
47   ${txt_files}
48   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
49   PARENT_SCOPE
50   )