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 / f90 / 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/smpif90")
7   endif()
8
9   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
10
11   add_executable(baseenvf90 EXCLUDE_FROM_ALL baseenvf90.f90)
12   add_dependencies(tests baseenvf90)
13   target_link_libraries(baseenvf90 simgrid mtest_f90)
14 endif()
15
16 set(examples_src
17   ${examples_src}
18   ${CMAKE_CURRENT_SOURCE_DIR}/baseenvf90.f90
19   PARENT_SCOPE)
20 set(txt_files
21   ${txt_files}
22   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
23   PARENT_SCOPE)