1 foreach(x task_listen_from task_destroy_cancel)
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})
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)
13 set(teshsuite_src ${teshsuite_src} PARENT_SCOPE)
14 set(tesh_files ${tesh_files} PARENT_SCOPE)
17 foreach(x task_destroy_cancel task_listen_from)
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)