Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
6568a728f9201e0e61eafa03d145b1f635dc86ad
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / info / 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   set(CMAKE_INCLUDE_CURRENT_DIR ON)
10   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
11
12   add_executable(infotest2f infotest2f.f ../util/mtestf.f)
13   add_executable(infotestf infotestf.f ../util/mtestf.f)
14   target_link_libraries(infotest2f simgrid mtest_f77)
15   target_link_libraries(infotestf simgrid mtest_f77)
16 endif()
17
18 set(examples_src
19   ${examples_src}
20  ${CMAKE_CURRENT_SOURCE_DIR}/infotest2f.f 
21  ${CMAKE_CURRENT_SOURCE_DIR}/infotestf.f 
22   PARENT_SCOPE)
23 set(txt_files
24   ${txt_files}
25   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
26   PARENT_SCOPE)