1 foreach(x trace-masterworker trace-process-migration)
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})
8 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
9 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
12 set(examples_src ${examples_src} PARENT_SCOPE)
13 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/README.doc PARENT_SCOPE)
14 set(tesh_files ${tesh_files} PARENT_SCOPE)
17 foreach (x trace-masterworker trace-process-migration)
18 ADD_TESH(msg-${x} --setenv bindir=${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
19 --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}
20 --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
21 --cd ${CMAKE_BINARY_DIR}/examples/deprecated/msg/${x}
22 ${CMAKE_HOME_DIRECTORY}/examples/deprecated/msg/${x}/${x}.tesh)