Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
add sg_actor_sleep_until
[simgrid.git] / examples / c / CMakeLists.txt
1 foreach(x
2         actor-create actor-daemon actor-join actor-kill 
3         app-pingpong app-token-ring async-waitany io-disk-raw)
4   add_executable       (${x}-c EXCLUDE_FROM_ALL ${x}/${x}.c)
5   target_link_libraries(${x}-c simgrid)
6   set_target_properties(${x}-c PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
7   add_dependencies(tests ${x}-c)
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 set(xml_files     ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/actor-create/actor-create_d.xml
17                                ${CMAKE_CURRENT_SOURCE_DIR}/app-pingpong/app-pingpong_d.xml
18                                ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/async-waitany_d.xml
19                                PARENT_SCOPE)
20
21 foreach(x
22         actor-create actor-daemon actor-join actor-kill
23         app-pingpong app-token-ring async-waitany io-disk-raw)
24   ADD_TESH(c-${x} --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
25                   --setenv bindir=${CMAKE_BINARY_DIR}/examples/c/${x}
26                   --cd ${CMAKE_HOME_DIRECTORY}/examples/c/${x}
27                   ${CMAKE_HOME_DIRECTORY}/examples/c/${x}/${x}.tesh)
28 endforeach()