Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Remove conditions from else() and endif() in cmake file.
[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   ${CMAKE_CURRENT_SOURCE_DIR}/profile.tesh
25   PARENT_SCOPE
26   )
27 set(xml_files
28   ${xml_files}
29   PARENT_SCOPE
30   )
31 set(examples_src
32   ${examples_src}
33   ${CMAKE_CURRENT_SOURCE_DIR}/ptest.c
34   ${CMAKE_CURRENT_SOURCE_DIR}/colluses.c
35   PARENT_SCOPE
36   )
37 set(bin_files
38   ${bin_files}
39   ${CMAKE_CURRENT_SOURCE_DIR}/../hostfile
40   PARENT_SCOPE
41   )
42 set(txt_files
43   ${txt_files}
44   PARENT_SCOPE
45   )