Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
024ee2b27f7f7c4981c522cb84a14d62debfae93
[simgrid.git] / teshsuite / smpi / mpich-test / profile / 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   endif()
9
10   set(EXECUTABLE_OUTPUT_PATH "${CMAKE_CURRENT_BINARY_DIR}")
11   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")
12
13   include_directories("${CMAKE_HOME_DIRECTORY}/include/smpi")
14   
15   add_executable(ptest ptest.c )
16   add_executable(colluses colluses.c )
17
18   target_link_libraries(ptest simgrid smpi )
19   target_link_libraries(colluses simgrid smpi )
20
21   set_target_properties(ptest PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
22   set_target_properties(colluses PROPERTIES COMPILE_FLAGS "${MPICH_FLAGS}")
23  
24 endif()
25
26 set(tesh_files
27   ${tesh_files}
28   PARENT_SCOPE
29   )
30 set(xml_files
31   ${xml_files}
32   PARENT_SCOPE
33   )
34 set(examples_src
35   ${examples_src}
36   ${CMAKE_CURRENT_SOURCE_DIR}/ptest.c
37   ${CMAKE_CURRENT_SOURCE_DIR}/colluses.c
38   PARENT_SCOPE
39   )
40 set(bin_files
41   ${bin_files}
42   PARENT_SCOPE
43   )
44 set(txt_files
45   ${txt_files}
46   ${CMAKE_CURRENT_SOURCE_DIR}/runtests
47   ${CMAKE_CURRENT_SOURCE_DIR}/ptest.std
48   PARENT_SCOPE
49   )