Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Revert "try to have all these mpich temporary libs sent to the right folder while...
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / 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/smpiff")
9   endif()
10
11   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
12   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
13   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
14
15   #F77 version of the mtest library
16   add_library(mtest_f77 STATIC ../util/mtestf.f)
17 endif()
18
19 set(txt_files
20   ${txt_files}
21   ${CMAKE_CURRENT_SOURCE_DIR}/../util/mtestf.f
22   PARENT_SCOPE
23   )