Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
forgot to commit that ...
[simgrid.git] / examples / msg / CMakeLists.txt
1 foreach(x actions-mpi actions-storage async-wait async-waitall async-waitany dht-chord dht-pastry exception 
2           energy-consumption energy-onoff energy-pstate energy-ptask energy-vm failures io-file io-file-unlink io-remote
3           io-storage pmm priority process-kill process-migration process-suspend properties sendrecv set-maestro
4           start_kill_time synchro token_ring trace-categories trace-link-srcdst-user-variables trace-link-user-variables
5           trace-masterslave trace-platform trace-process-migration trace-simple trace-user-variables)
6   add_executable       (${x}     ${x}/${x}.c)
7   target_link_libraries(${x}     simgrid)
8   set_target_properties(${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
9   set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
10   set(tesh_files   ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
11 endforeach()
12
13 if(HAVE_NS3)
14   add_executable       (ns3 ns3/ns3.c)
15   target_link_libraries(ns3 simgrid)
16   set_target_properties(ns3  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/ns3)
17 endif()
18
19 set(txt_files    ${txt_files}     ${CMAKE_CURRENT_SOURCE_DIR}/README
20                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi.txt
21                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_split_p0.txt
22                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_split_p1.txt
23                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-storage/actions-storage.txt          PARENT_SCOPE)
24 set(bin_files    ${bin_files}     ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/generate.py                        PARENT_SCOPE)
25 set(examples_src ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/ns3/ns3.c                                    PARENT_SCOPE)
26 set(tesh_files   ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/ns3/ns3.tesh                                 PARENT_SCOPE)
27 set(xml_files    ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_d.xml
28                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-mpi/actions-mpi_split_d.xml
29                                   ${CMAKE_CURRENT_SOURCE_DIR}/actions-storage/actions-storage_d.xml
30                                   ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait_d.xml
31                                   ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait2_d.xml
32                                   ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait3_d.xml
33                                   ${CMAKE_CURRENT_SOURCE_DIR}/async-wait/async-wait4_d.xml
34                                   ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/async-waitall_d.xml
35                                   ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/async-waitany_d.xml
36                                   ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/chord.xml
37                                   ${CMAKE_CURRENT_SOURCE_DIR}/dht-chord/chord10.xml
38                                   ${CMAKE_CURRENT_SOURCE_DIR}/dht-pastry/pastry10.xml
39                                   ${CMAKE_CURRENT_SOURCE_DIR}/energy-onoff/platform_onoff.xml
40                                   ${CMAKE_CURRENT_SOURCE_DIR}/io-remote/io-remote_d.xml
41                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/3hosts_2links_d.xml
42                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/3links-timer_d.xml
43                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/3links_d.xml
44                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/crosstraffic_d.xml
45                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/dogbone_d.xml
46                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/onelink_d.xml
47                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/one_cluster_d.xml
48                                   ${CMAKE_CURRENT_SOURCE_DIR}/ns3/two_clusters_d.xml
49                                   ${CMAKE_CURRENT_SOURCE_DIR}/priority/priority_d.xml
50                                   ${CMAKE_CURRENT_SOURCE_DIR}/properties/properties_d.xml
51                                   ${CMAKE_CURRENT_SOURCE_DIR}/sendrecv/sendrecv_d.xml
52                                   ${CMAKE_CURRENT_SOURCE_DIR}/set-maestro/set-maestro_d.xml
53                                   ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/baseline_d.xml
54                                   ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/kill_d.xml
55                                   ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/start_d.xml
56                                   ${CMAKE_CURRENT_SOURCE_DIR}/start_kill_time/start_kill_d.xml             PARENT_SCOPE)
57
58 foreach(x actions-mpi actions-storage async-wait async-waitall async-waitany dht-chord failures io-file io-file-unlink 
59         io-remote io-storage priority process-kill process-migration process-suspend properties sendrecv synchro 
60         start_kill_time token_ring)
61   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)
62 endforeach()
63
64 foreach (example consumption onoff pstate vm)
65   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)
66 endforeach()
67
68 foreach (x categories link-srcdst-user-variables link-user-variables masterslave platform process-migration simple user-variables)
69   ADD_TESH(msg-trace-${x} --setenv bindir=${CMAKE_BINARY_DIR}/examples/msg/trace-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_HOME_DIRECTORY}/examples/msg/trace-${x} trace-${x}.tesh)
70 endforeach()
71
72 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)
73 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)
74 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)
75 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)
76 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)
77
78 ADD_TESH(msg-pmm  --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/msg --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/platforms --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/pmm/pmm.tesh)
79
80 if(HAVE_NS3)
81   ADD_TESH_FACTORIES(msg-ns3 "thread;ucontext;raw;boost" --setenv srcdir=${CMAKE_HOME_DIRECTORY} --cd ${CMAKE_BINARY_DIR}/examples/msg ${CMAKE_HOME_DIRECTORY}/examples/msg/ns3/ns3.tesh)
82 endif()
83
84 # These one are not usable:
85 # 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)
86 # 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)