Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
factor cmake for teshsuite/msg
[simgrid.git] / teshsuite / smpi / compute / 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   include_directories(BEFORE "${CMAKE_HOME_DIRECTORY}/include/smpi")
8
9   add_executable       (compute  compute.c)
10   target_link_libraries(compute  simgrid)
11   add_executable       (compute2 compute2.c)
12   target_link_libraries(compute2 simgrid)
13   add_executable       (compute3 compute3.c)
14   target_link_libraries(compute3 simgrid)
15   ADD_TESH_FACTORIES(tesh-smpi-compute "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/smpi/compute --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/compute compute.tesh)
16 endif()
17
18 set(tesh_files
19   ${tesh_files}
20   ${CMAKE_CURRENT_SOURCE_DIR}/compute.tesh
21   PARENT_SCOPE)
22 set(examples_src
23   ${examples_src}
24   ${CMAKE_CURRENT_SOURCE_DIR}/compute.c
25   ${CMAKE_CURRENT_SOURCE_DIR}/compute2.c
26   ${CMAKE_CURRENT_SOURCE_DIR}/compute3.c
27   PARENT_SCOPE)