Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
wip. revising cmake for smpi.
[simgrid.git] / teshsuite / smpi / 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 #  foreach(x struct vector)
10 #     add_executable       (${x}/${x} ${x}/${x}.c)
11 #     target_link_libraries(${x}/ ${x} simgrid)
12 #
13 #     set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
14 #     set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
15 #
16 #     ADD_TESH_FACTORIES(tesh-smpi-${x} "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/smpi/${x} --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/smpi/${x} ${x}.tesh)
17 #  endforeach()
18
19 endif()
20
21 set(bin_files       ${bin_files}      ${CMAKE_CURRENT_SOURCE_DIR}/hostfile
22                                       ${CMAKE_CURRENT_SOURCE_DIR}/hostfile_coll  PARENT_SCOPE)
23 # set(teshsuite_src ${teshsuite_src}                                             PARENT_SCOPE)
24 # set(tesh_files    ${tesh_files}                                                PARENT_SCOPE)