Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
8410f4d751df53fa6bede3b0103c7ffa4a0e0142
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / util / 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   set(LIBRARY_OUTPUT_PATH ${CMAKE_BINARY_DIR}/lib)
13   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
14
15   #F90 version of the mtest library
16   add_library(mtest_f90 STATIC ../util/mtestf90.f90)
17
18 endif()
19
20
21 set(txt_files
22   ${txt_files}
23   ${CMAKE_CURRENT_SOURCE_DIR}/../util/mtestf90.f90
24   PARENT_SCOPE
25   )