Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
bc7223c84ec9b00c0b5c4b8729af4f39c2f10214
[simgrid.git] / teshsuite / smpi / mpich3-test / f90 / 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/smpif90")
7   endif()
8
9   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
10
11   foreach(test gaddressf90 typesnamef90 structf
12              # allctypesf90 createf90 get_elem_d get_elem_u
13              # hindex1f90 hindexed_blockf90 
14                indtype kinds
15              # packef90 sizeof  trf90 typecntsf90 typem2f90 typename3f90
16              # typenamef90 
17                typesubf90)
18     add_executable(${test} EXCLUDE_FROM_ALL ${test}.f90)
19     add_dependencies(tests ${test})
20     target_link_libraries(${test} simgrid mtest_f90)    
21   endforeach()
22 endif()
23
24 set(examples_src
25   ${examples_src}
26   ${CMAKE_CURRENT_SOURCE_DIR}/allctypesf90.f90
27   ${CMAKE_CURRENT_SOURCE_DIR}/createf90.f90
28   ${CMAKE_CURRENT_SOURCE_DIR}/gaddressf90.f90
29   ${CMAKE_CURRENT_SOURCE_DIR}/get_elem_d.f90
30   ${CMAKE_CURRENT_SOURCE_DIR}/get_elem_u.f90
31   ${CMAKE_CURRENT_SOURCE_DIR}/hindex1f90.f90
32   ${CMAKE_CURRENT_SOURCE_DIR}/hindexed_blockf90.f90
33   ${CMAKE_CURRENT_SOURCE_DIR}/indtype.f90
34   ${CMAKE_CURRENT_SOURCE_DIR}/kinds.f90
35   ${CMAKE_CURRENT_SOURCE_DIR}/packef90.f90
36   ${CMAKE_CURRENT_SOURCE_DIR}/sizeof.f90
37   ${CMAKE_CURRENT_SOURCE_DIR}/structf.f90
38   ${CMAKE_CURRENT_SOURCE_DIR}/trf90.f90
39   ${CMAKE_CURRENT_SOURCE_DIR}/typecntsf90.f90
40   ${CMAKE_CURRENT_SOURCE_DIR}/typem2f90.f90
41   ${CMAKE_CURRENT_SOURCE_DIR}/typename3f90.f90
42   ${CMAKE_CURRENT_SOURCE_DIR}/typenamef90.f90
43   ${CMAKE_CURRENT_SOURCE_DIR}/typesnamef90.f90
44   ${CMAKE_CURRENT_SOURCE_DIR}/typesubf90.f90
45   PARENT_SCOPE)
46 set(txt_files
47   ${txt_files}
48   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
49   PARENT_SCOPE)