1 foreach(x actions-mpi actions-storage async-wait async-waitall async-waitany dht-chord dht-pastry
2 exception energy-consumption energy-onoff energy-pstate energy-ptask energy-vm pmm priority process-kill
3 process-migration process-suspend properties sendrecv set-maestro start_kill_time synchro token_ring)
4 add_executable (${x} ${x}/${x}.c)
5 target_link_libraries(${x} simgrid)
6 set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
7 set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
8 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
11 foreach(file bourassa fafard ginette jupiter link3 link4 link5)
12 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/${file}_state.trace)
15 set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/README
16 ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi.txt
17 ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_split_p0.txt
18 ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_split_p1.txt
19 ${CMAKE_CURRENT_SOURCE_DIR}/actions-storage/actions-storage.txt PARENT_SCOPE)
20 set(bin_files ${bin_files} ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/generate.py PARENT_SCOPE)
21 set(examples_src ${examples_src} PARENT_SCOPE)
22 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/dht-chord_crosstraffic.tesh PARENT_SCOPE)
23 set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_d.xml
24 ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_split_d.xml
25 ${CMAKE_CURRENT_SOURCE_DIR}/actions-storage/actions-storage_d.xml
26 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait_d.xml
27 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait2_d.xml
28 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait3_d.xml
29 ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait4_d.xml
30 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/async-waitall_d.xml
31 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/async-waitany_d.xml
32 ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/chord.xml
33 ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/chord10.xml
34 ${CMAKE_CURRENT_SOURCE_DIR}/dht-pastry/pastry10.xml
35 ${CMAKE_CURRENT_SOURCE_DIR}/energy-onoff/platform_onoff.xml
36 ${CMAKE_CURRENT_SOURCE_DIR}/priority/priority_d.xml
37 ${CMAKE_CURRENT_SOURCE_DIR}/properties/properties_d.xml
38 ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv/sendrecv_d.xml
39 ${CMAKE_CURRENT_SOURCE_DIR}/set-maestro/set-maestro_d.xml
40 ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/baseline_d.xml
41 ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/kill_d.xml
42 ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/start_d.xml
43 ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/start_kill_d.xml PARENT_SCOPE)
45 foreach(x actions-mpi actions-storage async-wait async-waitall async-waitany dht-chord priority process-kill
46 process-migration process-suspend properties sendrecv synchro start_kill_time token_ring)
47 ADD_TESH_FACTORIES(msg-${x} "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/${x} ${x}.tesh)
50 foreach (example consumption onoff pstate vm)
51 ADD_TESH_FACTORIES(msg-energy-${example} "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/energy-${example}/energy-${example}.tesh)
54 ADD_TESH_FACTORIES(msg-dht-chord-crosstraffic "thread;ucontext;raw;boost" --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/dht-chord --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/dht-chord dht-chord_crosstraffic.tesh)
55 ADD_TESH_FACTORIES(msg-dht-chord-crosstraffic-parallel "thread;ucontext;raw" --cfg contexts/nthreads:4 ${CONTEXTS_SYNCHRO} --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/dht-chord --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/dht-chord dht-chord_crosstraffic.tesh)
56 ADD_TESH_FACTORIES(msg-dht-chord-parallel "thread;ucontext;raw" --cfg contexts/nthreads:4 ${CONTEXTS_SYNCHRO} --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/dht-chord --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/dht-chord dht-chord.tesh)
57 # ADD_TESH_FACTORIES(msg-dht-pastry "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg/dht-pastry --cd ${CMAKE_BINARY_DIR}/examples/msg/dht-pastry dht-pastry.tesh)
58 ADD_TESH_FACTORIES(msg-energy-pstate-ptask "thread;ucontext;raw;boost" --cfg host/model:ptask_L07 --log xbt_cfg.threshold:critical --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/energy-pstate/energy-pstate.tesh)
59 ADD_TESH_FACTORIES(msg-energy-consumption-ptask "thread;ucontext;raw;boost" --cfg host/model:ptask_L07 --log xbt_cfg.threshold:critical --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/energy-consumption/energy-consumption.tesh)
60 ADD_TESH_FACTORIES(msg-energy-ptask "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/energy-ptask/energy-ptask.tesh)
61 ADD_TESH_FACTORIES(msg-set-maestro "thread" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/set-maestro/set-maestro.tesh)
63 ADD_TESH(msg-pmm --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/pmm/pmm.tesh)
65 # This one is not usable:
66 # ADD_TESH_FACTORIES(msg-exception "thread;ucontext;raw" --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/exception/exception.tesh)