Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
deda91188200dba74a13f6bfc48a8f7cb8febd01
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / init / 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(baseenvf baseenvf.f)
12   target_link_libraries(baseenvf simgrid mtest_f77)
13 endif()
14
15 set(examples_src
16   ${examples_src}
17   ${CMAKE_CURRENT_SOURCE_DIR}/baseenvf.f
18   ${CMAKE_CURRENT_SOURCE_DIR}/checksizes.c
19   PARENT_SCOPE)
20 set(txt_files
21   ${txt_files}
22   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
23   PARENT_SCOPE)