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