Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Also add the mpich3 binaries in the dependencies of make tests
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / 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/smpiff")
7   endif()
8
9   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
10
11   foreach(test winaccf
12              # winerrf
13                winfencef wingroupf
14              # baseattrwinf winattr2f winattrf
15                wingetf winnamef winscale1f
16              # winscale2f
17                )
18     add_executable(${test} EXCLUDE_FROM_ALL ${test}.f)
19     add_dependencies(tests ${test})
20     target_link_libraries(${test} simgrid mtest_f77)
21   endforeach()
22   
23   add_executable(c2f2cwinf EXCLUDE_FROM_ALL c2f2cwinf.f c2f2cwin.c)
24   add_dependencies(tests c2f2cwinf)
25   target_link_libraries(c2f2cwinf simgrid mtest_f77)
26 endif()
27
28 set(examples_src
29   ${examples_src}
30   ${CMAKE_CURRENT_SOURCE_DIR}/winaccf.f
31   ${CMAKE_CURRENT_SOURCE_DIR}/winerrf.f
32   ${CMAKE_CURRENT_SOURCE_DIR}/winfencef.f
33   ${CMAKE_CURRENT_SOURCE_DIR}/wingroupf.f
34   ${CMAKE_CURRENT_SOURCE_DIR}/baseattrwinf.f
35   ${CMAKE_CURRENT_SOURCE_DIR}/c2f2cwin.c
36   ${CMAKE_CURRENT_SOURCE_DIR}/c2f2cwinf.f
37   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
38   ${CMAKE_CURRENT_SOURCE_DIR}/winattr2f.f
39   ${CMAKE_CURRENT_SOURCE_DIR}/winattrf.f
40   ${CMAKE_CURRENT_SOURCE_DIR}/wingetf.f
41   ${CMAKE_CURRENT_SOURCE_DIR}/winnamef.f
42   ${CMAKE_CURRENT_SOURCE_DIR}/winscale1f.f
43   ${CMAKE_CURRENT_SOURCE_DIR}/winscale2f.f
44   ${CMAKE_CURRENT_SOURCE_DIR}/addsize.h
45   ${CMAKE_CURRENT_SOURCE_DIR}/attraints.h
46   PARENT_SCOPE)
47 set(txt_files
48   ${txt_files}
49   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
50   PARENT_SCOPE)