Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fb41d8b0c14addd42c092c36cb3498680b6a1cfb
[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   add_executable(winaccf90 winaccf90.f90)
12 #  add_executable(winerrf90 winerrf90.f90)
13   add_executable(winfencef90 winfencef90.f90)
14   add_executable(wingroupf90 wingroupf90.f90)
15 #  add_executable(baseattrwinf90 baseattrwinf90.f90)
16 #  add_executable(winattr2f90 winattr2f90.f90)
17 #  add_executable(winattrf90 winattrf90.f90)
18   add_executable(c2f2cwinf90 c2f2cwinf90.f90 c2f902cwin.c)
19   add_executable(wingetf90 wingetf90.f90)
20   add_executable(winnamef90 winnamef90.f90)
21   add_executable(winscale1f90 winscale1f90.f90)
22 #  add_executable(winscale2f90 winscale2f90.f90)
23
24 target_link_libraries(winaccf90 simgrid mtest_f90)
25 #target_link_libraries(winerrf90 simgrid mtest_f90)
26 target_link_libraries(winfencef90 simgrid mtest_f90)
27 target_link_libraries(wingroupf90 simgrid mtest_f90)
28 #target_link_libraries(baseattrwinf90 simgrid mtest_f90)
29 target_link_libraries(c2f2cwinf90 simgrid mtest_f90)
30 #target_link_libraries(winattr2f90 simgrid mtest_f90)
31 #target_link_libraries(winattrf90 simgrid mtest_f90)
32 target_link_libraries(wingetf90 simgrid mtest_f90)
33 target_link_libraries(winnamef90 simgrid mtest_f90)
34 target_link_libraries(winscale1f90 simgrid mtest_f90)
35 #target_link_libraries(winscale2f90 simgrid mtest_f90)
36 endif()
37
38 set(examples_src
39   ${examples_src}
40   ${CMAKE_CURRENT_SOURCE_DIR}/winaccf90.f90
41   ${CMAKE_CURRENT_SOURCE_DIR}/winerrf90.f90
42   ${CMAKE_CURRENT_SOURCE_DIR}/winfencef90.f90
43   ${CMAKE_CURRENT_SOURCE_DIR}/wingroupf90.f90
44   ${CMAKE_CURRENT_SOURCE_DIR}/baseattrwinf90.f90
45   ${CMAKE_CURRENT_SOURCE_DIR}/c2f902cwin.c
46   ${CMAKE_CURRENT_SOURCE_DIR}/c2f2cwinf90.f90
47   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
48   ${CMAKE_CURRENT_SOURCE_DIR}/winattr2f90.f90
49   ${CMAKE_CURRENT_SOURCE_DIR}/winattrf90.f90
50   ${CMAKE_CURRENT_SOURCE_DIR}/wingetf90.f90
51   ${CMAKE_CURRENT_SOURCE_DIR}/winnamef90.f90
52   ${CMAKE_CURRENT_SOURCE_DIR}/winscale1f90.f90
53   ${CMAKE_CURRENT_SOURCE_DIR}/winscale2f90.f90
54   PARENT_SCOPE)
55 set(txt_files
56   ${txt_files}
57   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
58   PARENT_SCOPE)