Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
3d93a5886b82bc968f12c0fa71d2d70f0b40a3de
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / comm / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi AND SMPI_F2C)
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   set(MPICH_FLAGS "-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DUSE_STDARG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_PROTOTYPES=1 -DHAVE_SIGNAL_H=1 -DHAVE_SIGACTION=1 -DHAVE_SLEEP=1 -DHAVE_SYSCONF=1  -Wno-error=unused-variable -Wno-implicit -Wno-implicit-function-declaration")
13   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
14   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
15
16
17  # add_executable(commerrf commerrf.f ../util/mtestf.f)
18   add_executable(commnamef commnamef.f ../util/mtestf.f)
19
20  # target_link_libraries(commerrf  simgrid)
21   target_link_libraries(commnamef  simgrid)
22
23 # set_target_properties(commerrf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
24   set_target_properties(commnamef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
25
26 endif()
27
28 set(tesh_files
29   ${tesh_files}
30   PARENT_SCOPE
31   )
32 set(xml_files
33   ${xml_files}
34   PARENT_SCOPE
35   )
36 set(examples_src
37   ${examples_src}
38   ${CMAKE_CURRENT_SOURCE_DIR}/commerrf.f
39   ${CMAKE_CURRENT_SOURCE_DIR}/commnamef.f
40   PARENT_SCOPE
41   )
42 set(bin_files
43   ${bin_files}
44   PARENT_SCOPE
45   )
46 set(txt_files
47   ${txt_files}
48   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
49   PARENT_SCOPE
50   )