Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
don't compile non working and non compiling test
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / pt2pt / CMakeLists.txt
1 if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
2   if(WIN32)
3     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
4   else()
5     set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
6     set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpif90")
7   endif()
8
9   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
10   
11   foreach(test allpairf90
12                # mprobef90 greqf90
13                  statusesf90)
14     add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
15     add_dependencies(tests ${test})
16     target_link_libraries(${test} simgrid mtest_f90)    
17   endforeach()
18 endif()
19
20 set(examples_src
21   ${examples_src}
22   ${CMAKE_CURRENT_SOURCE_DIR}/allpairf90.f90
23   ${CMAKE_CURRENT_SOURCE_DIR}/dummyf90.f90
24   ${CMAKE_CURRENT_SOURCE_DIR}/greqf90.f90
25   ${CMAKE_CURRENT_SOURCE_DIR}/mprobef90.f90
26   ${CMAKE_CURRENT_SOURCE_DIR}/statusesf90.f90
27   PARENT_SCOPE)
28 set(txt_files
29   ${txt_files}
30   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
31   PARENT_SCOPE)