Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Fix make dist.
[simgrid.git] / teshsuite / smpi / mpich-test / profile / CMakeLists.txt
1 cmake_minimum_required(VERSION 2.6)
2
3 if(enable_smpi)
4   set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
5
6   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
7   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")
8
9   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
10   
11   add_executable(ptest ptest.c )
12   add_executable(colluses colluses.c )
13
14   target_link_libraries(ptest m simgrid smpi )
15   target_link_libraries(colluses m simgrid smpi )
16
17   set_target_properties(ptest PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
18   set_target_properties(colluses PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
19  
20 endif()
21
22 set(tesh_files
23   ${tesh_files}
24   PARENT_SCOPE
25   )
26 set(xml_files
27   ${xml_files}
28   PARENT_SCOPE
29   )
30 set(examples_src
31   ${examples_src}
32   ${CMAKE_CURRENT_SOURCE_DIR}/ptest.c
33   ${CMAKE_CURRENT_SOURCE_DIR}/colluses.c
34   PARENT_SCOPE
35   )
36 set(bin_files
37   ${bin_files}
38   PARENT_SCOPE
39   )
40 set(txt_files
41   ${txt_files}
42   PARENT_SCOPE
43   )