Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Add new entry in Release_Notes.
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / pt2pt / CMakeLists.txt
1 if(enable_smpi AND enable_testsuite_smpi_MPICH3 AND SMPI_FORTRAN)
2   set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
3   set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
4
5   set(CMAKE_INCLUDE_CURRENT_DIR ON)
6   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
7
8   add_executable(allpairf  EXCLUDE_FROM_ALL allpairf.f)
9   if((CMAKE_Fortran_COMPILER_ID MATCHES "GNU") AND (NOT CMAKE_Fortran_COMPILER_VERSION VERSION_LESS "10.0"))
10     set_property(SOURCE allpairf.f PROPERTY COMPILE_FLAGS -std=legacy)
11   endif()
12   add_executable(greqf    EXCLUDE_FROM_ALL greqf.f dummyf.f)
13 #  add_executable(mprobef  EXCLUDE_FROM_ALL mprobef.f)
14   add_executable(statusesf EXCLUDE_FROM_ALL statusesf.f)
15   add_dependencies(tests allpairf statusesf) # greqf mprobef
16
17   target_link_libraries(allpairf simgrid mtest_f77)
18   target_link_libraries(greqf simgrid mtest_f77)
19   #target_link_libraries(mprobef simgrid mtest_f77)
20   target_link_libraries(statusesf simgrid mtest_f77)
21 endif()
22
23 set(examples_src
24   ${examples_src}
25   ${CMAKE_CURRENT_SOURCE_DIR}/allpairf.f
26   ${CMAKE_CURRENT_SOURCE_DIR}/attr1aints.h
27   ${CMAKE_CURRENT_SOURCE_DIR}/dummyf.f
28   ${CMAKE_CURRENT_SOURCE_DIR}/greqf.f
29   ${CMAKE_CURRENT_SOURCE_DIR}/mprobef.f
30   ${CMAKE_CURRENT_SOURCE_DIR}/statusesf.f
31   PARENT_SCOPE)
32 set(txt_files
33   ${txt_files}
34   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
35   PARENT_SCOPE)