1 foreach (example actions-comm actions-storage
2 actor-create actor-daemon actor-kill actor-migration actor-suspend
3 app-masterworker app-pingpong app-token-ring
4 async-wait async-waitany async-waitall
6 plugin-hostload io mutex)
7 add_executable (s4u-${example} ${example}/s4u-${example}.cpp)
8 target_link_libraries(s4u-${example} simgrid)
9 set_target_properties(s4u-${example} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${example})
11 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/s4u-${example}.tesh)
12 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/s4u-${example}.cpp)
16 add_executable (s4u-dht-chord dht-chord/s4u-dht-chord.cpp dht-chord/node.cpp)
17 target_link_libraries(s4u-dht-chord simgrid)
18 set_target_properties(s4u-dht-chord PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dht-chord)
19 foreach (file s4u-dht-chord node)
20 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/${file}.cpp)
22 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/s4u-dht-chord.hpp)
24 add_executable (s4u-bittorrent app-bittorrent/s4u-bittorrent.cpp app-bittorrent/s4u-peer.cpp
25 app-bittorrent/s4u-tracker.cpp)
26 target_link_libraries(s4u-bittorrent simgrid)
27 set_target_properties(s4u-bittorrent PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-bittorrent)
28 foreach (file s4u-bittorrent s4u-peer s4u-tracker)
29 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.cpp
30 ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.hpp)
33 set(examples_src ${examples_src} PARENT_SCOPE)
34 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/s4u-app-bittorrent.tesh
35 ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/s4u-dht-chord.tesh
36 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/s4u-async-wait.tesh
37 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/s4u-async-waitany.tesh
38 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/s4u-async-waitall.tesh
39 ${CMAKE_CURRENT_SOURCE_DIR}/process-create/s4u-actor-execute.tesh PARENT_SCOPE)
40 set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u-actions-comm-split_d.xml
41 ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u-actions-comm_d.xml
42 ${CMAKE_CURRENT_SOURCE_DIR}/actions-storage/s4u-actions-storage_d.xml
43 ${CMAKE_CURRENT_SOURCE_DIR}/actor-create/s4u-actor-create_d.xml
44 ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/s4u-app-bittorrent_d.xml
45 ${CMAKE_CURRENT_SOURCE_DIR}/app-masterworker/s4u-app-masterworker_d.xml
46 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/s4u-async-waitany_d.xml
47 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/s4u-async-waitall_d.xml
48 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/s4u-async-wait_d.xml
49 ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/s4u-dht-chord_d.xml PARENT_SCOPE)
50 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u-actions-comm-split-p0.txt
51 ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u-actions-comm-split-p1.txt
52 ${CMAKE_CURRENT_SOURCE_DIR}/actions-comm/s4u-actions-comm.txt
53 ${CMAKE_CURRENT_SOURCE_DIR}/actions-storage/s4u-actions-storage.txt
54 ${CMAKE_CURRENT_SOURCE_DIR}/README.doc PARENT_SCOPE)
56 foreach(example actions-comm actions-storage
57 actor-create actor-daemon actor-kill actor-migration actor-suspend
58 app-bittorrent app-masterworker app-pingpong app-token-ring
59 async-wait async-waitall async-waitany
61 dht-chord plugin-hostload io mutex)
62 ADD_TESH_FACTORIES(s4u-${example} "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/${example} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_HOME_DIRECTORY}/examples/s4u/${example} s4u-${example}.tesh)