Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert get-sender test
[simgrid.git] / teshsuite / msg / CMakeLists.txt
1 foreach(x task_listen_from task_destroy_cancel)
2   if(enable_msg)
3     add_executable       (${x} EXCLUDE_FROM_ALL ${x}/${x}.c)
4     target_link_libraries(${x} simgrid)
5     set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
6     add_dependencies(tests ${x})
7   endif()
8
9   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
10   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
11 endforeach()
12
13 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
14 set(tesh_files    ${tesh_files}     PARENT_SCOPE)
15
16 if(enable_msg)
17   foreach(x task_destroy_cancel task_listen_from)
18
19     ADD_TESH_FACTORIES(tesh-msg-${x} "raw"  --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
20                                             --setenv bindir=${CMAKE_BINARY_DIR}/teshsuite/msg/${x}
21                                             --cd ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/${x} 
22                                             ${CMAKE_HOME_DIRECTORY}/teshsuite/msg/${x}/${x}.tesh)
23   endforeach()
24 endif()