Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
5d4714b624e0810567a8e71e15490a976a585d3b
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / pt2pt / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi AND enable_smpi_MPICH3_testsuite 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(CMAKE_INCLUDE_CURRENT_DIR ON)
12   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
13   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
14   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
15
16   add_executable(allpairf allpairf.f)
17 #  add_executable(greqf greqf.f dummyf.f)
18   #add_executable(mprobef mprobef.f)
19 #  add_executable(statusesf statusesf.f)
20
21   target_link_libraries(allpairf simgrid mtest_f77)
22 #  target_link_libraries(greqf simgrid mtest_f77)
23   #target_link_libraries(mprobef simgrid mtest_f77)
24 #  target_link_libraries(statusesf simgrid mtest_f77)
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}/allpairf.f
39   ${CMAKE_CURRENT_SOURCE_DIR}/attr1aints.h
40   ${CMAKE_CURRENT_SOURCE_DIR}/dummyf.f
41   ${CMAKE_CURRENT_SOURCE_DIR}/greqf.f
42   ${CMAKE_CURRENT_SOURCE_DIR}/mprobef.f
43   ${CMAKE_CURRENT_SOURCE_DIR}/statusesf.f
44   PARENT_SCOPE
45   )
46 set(bin_files
47   ${bin_files}
48   PARENT_SCOPE
49   )
50 set(txt_files
51   ${txt_files}
52   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
53   PARENT_SCOPE
54   )