Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix errors in make distcheck.
[simgrid.git] / teshsuite / smpi / mpich3-test / f77 / datatype / 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   set(MPICH_FLAGS "-DHAVE_STDLIB_H=1 -DHAVE_UNISTD_H=1 -DHAVE_STRING_H=1 -DUSE_STDARG=1 -DHAVE_LONG_DOUBLE=1 -DHAVE_PROTOTYPES=1 -DHAVE_SIGNAL_H=1 -DHAVE_SIGACTION=1 -DHAVE_SLEEP=1 -DHAVE_SYSCONF=1  -Wno-error=unused-variable -Wno-implicit -Wno-implicit-function-declaration")
13   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
14   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
15
16   add_executable(allctypesf allctypesf.f ../util/mtestf.f)
17   add_executable(gaddressf gaddressf.f ../util/mtestf.f)
18   add_executable(hindex1f hindex1f.f ../util/mtestf.f)
19   add_executable(hindexed_blockf hindexed_blockf.f ../util/mtestf.f)
20   add_executable(packef packef.f ../util/mtestf.f)
21   add_executable(typeaints typeaints.h ../util/mtestf.f)
22   add_executable(typecntsf typecntsf.f ../util/mtestf.f)
23   add_executable(typem2f typem2f.f ../util/mtestf.f)
24   add_executable(typename3f typename3f.f ../util/mtestf.f)
25   add_executable(typenamef typenamef.f ../util/mtestf.f)
26   add_executable(typesnamef typesnamef.f ../util/mtestf.f)
27   add_executable(typesubf typesubf.f ../util/mtestf.f)
28
29   target_link_libraries(allctypesf  simgrid)
30   target_link_libraries(gaddressf  simgrid)
31   target_link_libraries(hindex1f  simgrid)
32   target_link_libraries(hindexed_blockf  simgrid)
33   target_link_libraries(packef  simgrid)
34   target_link_libraries(typeaints  simgrid)
35   target_link_libraries(typecntsf  simgrid)
36   target_link_libraries(typem2f  simgrid)
37   target_link_libraries(typename3f  simgrid)
38   target_link_libraries(typenamef  simgrid)
39   target_link_libraries(typesnamef  simgrid)
40   target_link_libraries(typesubf  simgrid)
41
42   set_target_properties(allctypesf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
43   set_target_properties(gaddressf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
44   set_target_properties(hindex1f PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
45   set_target_properties(hindexed_blockf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
46   set_target_properties(packef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
47   set_target_properties(typeaints PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
48   set_target_properties(typecntsf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
49   set_target_properties(typem2f PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
50   set_target_properties(typename3f PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
51   set_target_properties(typenamef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
52   set_target_properties(typesnamef PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
53   set_target_properties(typesubf PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
54
55 endif()
56
57 set(tesh_files
58   ${tesh_files}
59   PARENT_SCOPE
60   )
61 set(xml_files
62   ${xml_files}
63   PARENT_SCOPE
64   )
65 set(examples_src
66   ${examples_src}
67   ${CMAKE_CURRENT_SOURCE_DIR}/allctypesf.f
68   ${CMAKE_CURRENT_SOURCE_DIR}/gaddressf.f
69   ${CMAKE_CURRENT_SOURCE_DIR}/hindex1f.f
70   ${CMAKE_CURRENT_SOURCE_DIR}/hindexed_blockf.f
71   ${CMAKE_CURRENT_SOURCE_DIR}/packef.f
72   ${CMAKE_CURRENT_SOURCE_DIR}/typeaints.h
73   ${CMAKE_CURRENT_SOURCE_DIR}/typecntsf.f
74   ${CMAKE_CURRENT_SOURCE_DIR}/typem2f.f
75   ${CMAKE_CURRENT_SOURCE_DIR}/typename3f.f
76   ${CMAKE_CURRENT_SOURCE_DIR}/typenamef.f
77   ${CMAKE_CURRENT_SOURCE_DIR}/typesnamef.f
78   ${CMAKE_CURRENT_SOURCE_DIR}/typesubf.f
79   PARENT_SCOPE
80   )
81 set(bin_files
82   ${bin_files}
83   PARENT_SCOPE
84   )
85 set(txt_files
86   ${txt_files}
87   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
88   ${CMAKE_CURRENT_SOURCE_DIR}/../util/mtestf.f
89   PARENT_SCOPE
90   )