Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove redefinitions of COMPILE_FLAGS for mpich3-test.
[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   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
13   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
14
15  # add_executable(commerrf commerrf.f ../util/mtestf.f)
16   add_executable(commnamef commnamef.f ../util/mtestf.f)
17
18  # target_link_libraries(commerrf  simgrid)
19   target_link_libraries(commnamef  simgrid)
20
21 endif()
22
23 set(tesh_files
24   ${tesh_files}
25   PARENT_SCOPE
26   )
27 set(xml_files
28   ${xml_files}
29   PARENT_SCOPE
30   )
31 set(examples_src
32   ${examples_src}
33   ${CMAKE_CURRENT_SOURCE_DIR}/commerrf.f
34   ${CMAKE_CURRENT_SOURCE_DIR}/commnamef.f
35   PARENT_SCOPE
36   )
37 set(bin_files
38   ${bin_files}
39   PARENT_SCOPE
40   )
41 set(txt_files
42   ${txt_files}
43   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
44   PARENT_SCOPE
45   )