1 foreach (example actor-create actor-daemon actor-join actor-kill actor-lifetime actor-migration actor-suspend actor-yield
2 app-chainsend app-masterworker app-pingpong app-token-ring
3 async-wait async-waitany async-waitall
4 cloud-capping cloud-simple
5 energy-exec energy-boot energy-link energy-vm
6 exec-async exec-basic exec-dvfs exec-monitor exec-ptask exec-remote
7 io-file-system io-file-remote io-storage-raw
9 platform-properties plugin-hostload
10 replay-comm replay-storage
12 add_executable (s4u-${example} ${example}/s4u-${example}.cpp)
13 target_link_libraries(s4u-${example} simgrid)
14 set_target_properties(s4u-${example} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${example})
16 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/s4u-${example}.tesh)
17 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${example}/s4u-${example}.cpp)
21 add_executable (s4u-dht-chord dht-chord/s4u-dht-chord.cpp dht-chord/node.cpp)
22 target_link_libraries(s4u-dht-chord simgrid)
23 set_target_properties(s4u-dht-chord PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dht-chord)
24 foreach (file s4u-dht-chord node)
25 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/${file}.cpp)
27 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/s4u-dht-chord.hpp)
30 add_executable (s4u-dht-kademlia dht-kademlia/s4u-dht-kademlia.cpp dht-kademlia/node.cpp
31 dht-kademlia/routing_table.cpp dht-kademlia/answer.cpp)
32 target_link_libraries(s4u-dht-kademlia simgrid)
33 set_target_properties(s4u-dht-kademlia PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/dht-kademlia)
34 foreach (file answer routing_table node s4u-dht-kademlia)
35 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/${file}.cpp
36 ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/${file}.hpp)
38 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/message.hpp)
41 add_executable (s4u-bittorrent app-bittorrent/s4u-bittorrent.cpp app-bittorrent/s4u-peer.cpp
42 app-bittorrent/s4u-tracker.cpp)
43 target_link_libraries(s4u-bittorrent simgrid)
44 set_target_properties(s4u-bittorrent PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-bittorrent)
45 foreach (file s4u-bittorrent s4u-peer s4u-tracker)
46 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.cpp
47 ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/${file}.hpp)
50 set(examples_src ${examples_src} PARENT_SCOPE)
51 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/s4u-app-bittorrent.tesh
52 ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/s4u-dht-chord.tesh
53 ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/s4u-dht-kademlia.tesh
54 ${CMAKE_CURRENT_SOURCE_DIR}/actor-lifetime/s4u-actor-lifetime.tesh
55 ${CMAKE_CURRENT_SOURCE_DIR}/actor-yield/s4u-actor-yield.tesh
56 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/s4u-async-wait.tesh
57 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/s4u-async-waitany.tesh
58 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/s4u-async-waitall.tesh
59 ${CMAKE_CURRENT_SOURCE_DIR}/exec-basic/s4u-exec-basic.tesh
60 ${CMAKE_CURRENT_SOURCE_DIR}/exec-dvfs/s4u-exec-dvfs.tesh
62 set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/actor-create/s4u-actor-create_d.xml
63 ${CMAKE_CURRENT_SOURCE_DIR}/actor-lifetime/s4u-actor-lifetime_d.xml
64 ${CMAKE_CURRENT_SOURCE_DIR}/actor-yield/s4u-actor-yield_d.xml
65 ${CMAKE_CURRENT_SOURCE_DIR}/app-bittorrent/s4u-app-bittorrent_d.xml
66 ${CMAKE_CURRENT_SOURCE_DIR}/app-masterworker/s4u-app-masterworker_d.xml
67 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/s4u-async-waitany_d.xml
68 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/s4u-async-waitall_d.xml
69 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/s4u-async-wait_d.xml
70 ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/s4u-dht-chord_d.xml
71 ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/s4u-dht-kademlia_d.xml
72 ${CMAKE_CURRENT_SOURCE_DIR}/energy-boot/platform_boot.xml
73 ${CMAKE_CURRENT_SOURCE_DIR}/io-file-remote/s4u-io-file-remote_d.xml
74 ${CMAKE_CURRENT_SOURCE_DIR}/platform-properties/s4u-platform-properties_d.xml
75 ${CMAKE_CURRENT_SOURCE_DIR}/replay-comm/s4u-replay-comm-split_d.xml
76 ${CMAKE_CURRENT_SOURCE_DIR}/replay-comm/s4u-replay-comm_d.xml
77 ${CMAKE_CURRENT_SOURCE_DIR}/replay-storage/s4u-replay-storage_d.xml
79 set(bin_files ${bin_files} ${CMAKE_CURRENT_SOURCE_DIR}/dht-kademlia/generate.py PARENT_SCOPE)
80 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/replay-comm/s4u-replay-comm-split-p0.txt
81 ${CMAKE_CURRENT_SOURCE_DIR}/replay-comm/s4u-replay-comm-split-p1.txt
82 ${CMAKE_CURRENT_SOURCE_DIR}/replay-comm/s4u-replay-comm.txt
83 ${CMAKE_CURRENT_SOURCE_DIR}/replay-storage/s4u-replay-storage.txt
84 ${CMAKE_CURRENT_SOURCE_DIR}/README.doc PARENT_SCOPE)
86 foreach(example actor-create actor-daemon actor-join actor-kill actor-lifetime actor-migration actor-suspend actor-yield
87 app-bittorrent app-chainsend app-masterworker app-pingpong app-token-ring
88 async-wait async-waitall async-waitany
89 cloud-capping cloud-simple
90 dht-chord dht-kademlia
91 energy-exec energy-boot energy-link energy-vm
92 exec-async exec-basic exec-dvfs exec-monitor exec-ptask exec-remote
93 platform-properties plugin-hostload mutex
94 io-file-system io-file-remote io-storage-raw
95 replay-comm replay-storage)
96 ADD_TESH_FACTORIES(s4u-${example} "thread;ucontext;raw;boost"
97 --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/${example}
98 --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
99 --cd ${CMAKE_CURRENT_SOURCE_DIR}/${example}
100 ${CMAKE_HOME_DIRECTORY}/examples/s4u/${example}/s4u-${example}.tesh)
103 foreach (example trace-platform)
104 ADD_TESH(s4u-${example} --setenv bindir=${CMAKE_CURRENT_BINARY_DIR}/${example}
105 --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
106 ${CMAKE_HOME_DIRECTORY}/examples/s4u/${example}/s4u-${example}.tesh)