Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
better handling of some datatypes in fortran
[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   include_directories(${CMAKE_CURRENT_BINARY_DIR})
11
12   configure_file(${CMAKE_CURRENT_SOURCE_DIR}/typeaints.h.in typeaints.h @ONLY)
13
14   foreach(test gaddressf
15              allctypesf hindex1f hindexed_blockf packef typecntsf
16              typem2f typename3f typenamef typesnamef
17                typesubf)
18     add_executable(${test} EXCLUDE_FROM_ALL ${test}.f)
19     add_dependencies(tests ${test})
20     target_link_libraries(${test} simgrid mtest_f77)    
21   endforeach()
22 endif()
23
24 set(examples_src
25   ${examples_src}
26   ${CMAKE_CURRENT_SOURCE_DIR}/allctypesf.f
27   ${CMAKE_CURRENT_SOURCE_DIR}/gaddressf.f
28   ${CMAKE_CURRENT_SOURCE_DIR}/hindex1f.f
29   ${CMAKE_CURRENT_SOURCE_DIR}/hindexed_blockf.f
30   ${CMAKE_CURRENT_SOURCE_DIR}/packef.f
31   ${CMAKE_CURRENT_SOURCE_DIR}/typeaints.h.in
32   ${CMAKE_CURRENT_SOURCE_DIR}/typecntsf.f
33   ${CMAKE_CURRENT_SOURCE_DIR}/typem2f.f
34   ${CMAKE_CURRENT_SOURCE_DIR}/typename3f.f
35   ${CMAKE_CURRENT_SOURCE_DIR}/typenamef.f
36   ${CMAKE_CURRENT_SOURCE_DIR}/typesnamef.f
37   ${CMAKE_CURRENT_SOURCE_DIR}/typesubf.f
38   PARENT_SCOPE)
39 set(txt_files
40   ${txt_files}
41   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
42   PARENT_SCOPE)