Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
4950ac76f27feac75bd2db6a5e221d17d93fe71c
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / attr / 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   add_executable(attrmpi1f attrmpi1f.f)
12   add_executable(baseattr2f baseattr2f.f)
13   add_executable(baseattrf baseattrf.f)
14   add_executable(commattr2f commattr2f.f)
15   add_executable(commattr3f commattr3f.f)
16   add_executable(commattrf commattrf.f )
17   add_executable(typeattr2f typeattr2f.f )
18   add_executable(typeattr3f typeattr3f.f )
19   add_executable(typeattrf typeattrf.f )
20
21   target_link_libraries(attrmpi1f simgrid mtest_f77)
22   target_link_libraries(baseattr2f simgrid mtest_f77)
23   target_link_libraries(baseattrf simgrid mtest_f77)
24   target_link_libraries(commattr2f simgrid mtest_f77)
25   target_link_libraries(commattr3f simgrid mtest_f77)
26   target_link_libraries(commattrf simgrid mtest_f77)
27   target_link_libraries(typeattr2f simgrid mtest_f77)
28   target_link_libraries(typeattr3f simgrid mtest_f77)
29   target_link_libraries(typeattrf simgrid mtest_f77)
30 endif()
31
32 set(examples_src
33   ${examples_src}
34   ${CMAKE_CURRENT_SOURCE_DIR}/attraints.h
35   ${CMAKE_CURRENT_SOURCE_DIR}/attrmpi1f.f
36   ${CMAKE_CURRENT_SOURCE_DIR}/baseattr2f.f
37   ${CMAKE_CURRENT_SOURCE_DIR}/baseattrf.f
38   ${CMAKE_CURRENT_SOURCE_DIR}/commattr2f.f
39   ${CMAKE_CURRENT_SOURCE_DIR}/commattr3f.f
40   ${CMAKE_CURRENT_SOURCE_DIR}/commattrf.f
41   ${CMAKE_CURRENT_SOURCE_DIR}/typeattr2f.f
42   ${CMAKE_CURRENT_SOURCE_DIR}/typeattr3f.f
43   ${CMAKE_CURRENT_SOURCE_DIR}/typeattrf.f
44   PARENT_SCOPE
45 )
46 set(txt_files
47   ${txt_files}
48   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
49   PARENT_SCOPE
50 )