Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bd810bd1681ae9c3a29edad8729f0f709b6d6ad0
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / datatype / CMakeLists.txt
1 if(enable_smpi AND enable_smpi_MPICH3_testsuite AND SMPI_FORTRAN)
2   if(WIN32)
3     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
4   else()
5     set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
6     set(CMAKE_Fortran_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpiff")
7   endif()
8
9   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
10
11   configure_file(${CMAKE_CURRENT_SOURCE_DIR}/typeaints.h.in ${CMAKE_CURRENT_SOURCE_DIR}/typeaints.h @ONLY)
12
13 #  add_executable(allctypesf allctypesf.f)
14   add_executable(gaddressf gaddressf.f)
15 #  add_executable(hindex1f hindex1f.f)
16 #  add_executable(hindexed_blockf hindexed_blockf.f)
17 #  add_executable(packef packef.f)
18 #  add_executable(typecntsf typecntsf.f)
19 #  add_executable(typem2f typem2f.f)
20 #  add_executable(typename3f typename3f.f)
21 #  add_executable(typenamef typenamef.f)
22 #  add_executable(typesnamef typesnamef.f)
23 #  add_executable(typesubf typesubf.f)
24
25 #  target_link_libraries(allctypesf simgrid mtest_f77)
26   target_link_libraries(gaddressf simgrid mtest_f77)
27 #  target_link_libraries(hindex1f simgrid mtest_f77)
28 #  target_link_libraries(hindexed_blockf simgrid mtest_f77)
29 #  target_link_libraries(packef simgrid mtest_f77)
30 #  target_link_libraries(typecntsf simgrid mtest_f77)
31 #  target_link_libraries(typem2f simgrid mtest_f77)
32 #  target_link_libraries(typename3f simgrid mtest_f77)
33 #  target_link_libraries(typenamef simgrid mtest_f77)
34 #  target_link_libraries(typesnamef simgrid mtest_f77)
35 #  target_link_libraries(typesubf simgrid mtest_f77)
36 endif()
37
38 set(examples_src
39   ${examples_src}
40   ${CMAKE_CURRENT_SOURCE_DIR}/allctypesf.f
41   ${CMAKE_CURRENT_SOURCE_DIR}/gaddressf.f
42   ${CMAKE_CURRENT_SOURCE_DIR}/hindex1f.f
43   ${CMAKE_CURRENT_SOURCE_DIR}/hindexed_blockf.f
44   ${CMAKE_CURRENT_SOURCE_DIR}/packef.f
45   ${CMAKE_CURRENT_SOURCE_DIR}/typeaints.h.in
46   ${CMAKE_CURRENT_SOURCE_DIR}/typecntsf.f
47   ${CMAKE_CURRENT_SOURCE_DIR}/typem2f.f
48   ${CMAKE_CURRENT_SOURCE_DIR}/typename3f.f
49   ${CMAKE_CURRENT_SOURCE_DIR}/typenamef.f
50   ${CMAKE_CURRENT_SOURCE_DIR}/typesnamef.f
51   ${CMAKE_CURRENT_SOURCE_DIR}/typesubf.f
52   PARENT_SCOPE)
53 set(txt_files
54   ${txt_files}
55   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
56   PARENT_SCOPE)