Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
be5ba74d987e841f249898ed32d1e7a3eecebea4
[simgrid.git] / teshsuite / smpi / mpich3-test / info / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi)
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   
13   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
14   include_directories("${CMAKE_CURRENT_SOURCE_DIR}/../include/")
15
16
17   add_executable(infodel infodel.c)
18   add_executable(infodup infodup.c)
19 #  add_executable(infoenv infoenv.c)
20   add_executable(infomany2 infomany2.c)
21   add_executable(infomany infomany.c)
22   add_executable(infoorder infoorder.c)
23   add_executable(infotest infotest.c)
24   add_executable(infovallen infovallen.c)
25
26
27
28   target_link_libraries(infodel simgrid mtest_c)
29   target_link_libraries(infodup simgrid mtest_c)
30 #  target_link_libraries(infoenv simgrid mtest_c)
31   target_link_libraries(infomany2 simgrid mtest_c)
32   target_link_libraries(infomany simgrid mtest_c)
33   target_link_libraries(infoorder simgrid mtest_c)
34   target_link_libraries(infotest simgrid mtest_c)
35   target_link_libraries(infovallen simgrid mtest_c)
36
37
38
39
40 endif()
41
42 set(tesh_files
43   ${tesh_files}
44   PARENT_SCOPE
45   )
46 set(xml_files
47   ${xml_files}
48   PARENT_SCOPE
49   )
50 set(examples_src
51   ${examples_src}
52  ${CMAKE_CURRENT_SOURCE_DIR}/infodel.c 
53  ${CMAKE_CURRENT_SOURCE_DIR}/infodup.c 
54  ${CMAKE_CURRENT_SOURCE_DIR}/infoenv.c 
55  ${CMAKE_CURRENT_SOURCE_DIR}/infomany2.c 
56  ${CMAKE_CURRENT_SOURCE_DIR}/infomany.c 
57  ${CMAKE_CURRENT_SOURCE_DIR}/infoorder.c 
58  ${CMAKE_CURRENT_SOURCE_DIR}/infotest.c 
59  ${CMAKE_CURRENT_SOURCE_DIR}/infovallen.c 
60   PARENT_SCOPE
61   )
62 set(bin_files
63   ${bin_files}
64   PARENT_SCOPE
65   )
66 set(txt_files
67   ${txt_files}
68   ${CMAKE_CURRENT_SOURCE_DIR}/testlist
69   PARENT_SCOPE
70   )