Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Disable python tests with valgrind.
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / rma / 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 winaccf90
12              # winerrf90
13            winfencef90 wingroupf90
14            baseattrwinf90 winattr2f90 winattrf90
15            wingetf90 winnamef90 winscale1f90
16          # winscale2f90
17            )
18     add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
19     add_dependencies(tests ${test})
20     target_link_libraries(${test} simgrid mtest_f90)    
21   endforeach()
22
23   add_executable(c2f2cwinf90 EXCLUDE_FROM_ALL c2f2cwinf90.f90 c2f902cwin.c)
24   add_dependencies(tests c2f2cwinf90)
25   target_link_libraries(c2f2cwinf90 simgrid mtest_f90)
26 endif()
27
28 set(examples_src
29   ${examples_src}
30   ${CMAKE_CURRENT_SOURCE_DIR}/winaccf90.f90
31   ${CMAKE_CURRENT_SOURCE_DIR}/winerrf90.f90
32   ${CMAKE_CURRENT_SOURCE_DIR}/winfencef90.f90
33   ${CMAKE_CURRENT_SOURCE_DIR}/wingroupf90.f90
34   ${CMAKE_CURRENT_SOURCE_DIR}/baseattrwinf90.f90
35   ${CMAKE_CURRENT_SOURCE_DIR}/c2f902cwin.c
36   ${CMAKE_CURRENT_SOURCE_DIR}/c2f2cwinf90.f90
37   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
38   ${CMAKE_CURRENT_SOURCE_DIR}/winattr2f90.f90
39   ${CMAKE_CURRENT_SOURCE_DIR}/winattrf90.f90
40   ${CMAKE_CURRENT_SOURCE_DIR}/wingetf90.f90
41   ${CMAKE_CURRENT_SOURCE_DIR}/winnamef90.f90
42   ${CMAKE_CURRENT_SOURCE_DIR}/winscale1f90.f90
43   ${CMAKE_CURRENT_SOURCE_DIR}/winscale2f90.f90
44   PARENT_SCOPE)
45 set(txt_files
46   ${txt_files}
47   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
48   PARENT_SCOPE)