Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
do not build the examples by default, only when running 'make tests'
[simgrid.git] / examples / smpi / NAS / CMakeLists.txt
1 if(enable_smpi)
2   if(WIN32)
3     set(CMAKE_C_FLAGS "-include ${CMAKE_HOME_DIRECTORY}/include/smpi/smpi_main.h")
4   else()
5     set(CMAKE_C_COMPILER "${CMAKE_BINARY_DIR}/smpi_script/bin/smpicc")
6   endif()
7
8   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
9   add_executable       (is EXCLUDE_FROM_ALL is.c nas_common.c)
10   target_link_libraries(is simgrid)
11   add_executable       (ep EXCLUDE_FROM_ALL ep.c nas_common.c)
12   target_link_libraries(ep simgrid)
13   add_executable       (dt EXCLUDE_FROM_ALL dt.c nas_common.c DGraph.c)
14   target_link_libraries(dt simgrid)
15   add_dependencies(tests is ep dt)
16 endif()
17
18 set(examples_src  ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/nas_common.h
19                                    ${CMAKE_CURRENT_SOURCE_DIR}/nas_common.c
20                                    ${CMAKE_CURRENT_SOURCE_DIR}/is.c
21                                    ${CMAKE_CURRENT_SOURCE_DIR}/dt.c
22                                    ${CMAKE_CURRENT_SOURCE_DIR}/ep.c
23                                    ${CMAKE_CURRENT_SOURCE_DIR}/DGraph.c
24                                    ${CMAKE_CURRENT_SOURCE_DIR}/DGraph.h
25                                                                               PARENT_SCOPE)
26 set(txt_files     ${txt_files}    ${CMAKE_CURRENT_SOURCE_DIR}/README.install  PARENT_SCOPE)