Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add mpi_info_* support to fortran, and activate relevant tests
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / info / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
4   if(WIN32)
5     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
6   else()
7     set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
8     set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpif90")
9   endif()
10
11   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
12   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
13
14   add_executable(infotest2f90 infotest2f90.f90 ../util/mtestf90.f90)
15   add_executable(infotestf90 infotestf90.f90 ../util/mtestf90.f90)
16   target_link_libraries(infotest2f90  simgrid mtest_f90)
17   target_link_libraries(infotestf90  simgrid mtest_f90)
18
19 endif()
20
21 set(tesh_files
22   ${tesh_files}
23   PARENT_SCOPE
24   )
25 set(xml_files
26   ${xml_files}
27   PARENT_SCOPE
28   )
29 set(examples_src
30   ${examples_src}
31  ${CMAKE_CURRENT_SOURCE_DIR}/infotest2f90.f90 
32  ${CMAKE_CURRENT_SOURCE_DIR}/infotestf90.f90 
33   PARENT_SCOPE
34   )
35 set(bin_files
36   ${bin_files}
37   PARENT_SCOPE
38   )
39 set(txt_files
40   ${txt_files}
41   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
42   PARENT_SCOPE
43   )