1 # Regular examples: with only one source and tested with all factories
2 ######################################################################
5 actor-create actor-daemon actor-exiting actor-join actor-kill actor-migrate actor-suspend actor-yield
6 app-pingpong app-token-ring
7 async-waitall async-waitany
8 cloud-capping cloud-simple
13 add_executable (${x}-c EXCLUDE_FROM_ALL ${x}/${x}.c)
14 target_link_libraries(${x}-c simgrid)
15 set_target_properties(${x}-c PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
16 add_dependencies(tests ${x}-c)
18 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
19 set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
22 # Multi-files examples
23 ######################
26 add_executable (app-chainsend-c EXCLUDE_FROM_ALL app-chainsend/chainsend.c app-chainsend/broadcaster.c
28 target_link_libraries(app-chainsend-c simgrid)
29 set_target_properties(app-chainsend-c PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/app-chainsend)
30 add_dependencies(tests app-chainsend-c)
32 foreach (file chainsend broadcaster peer)
33 set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/app-chainsend/${file}.c)
35 set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/app-chainsend/chainsend.h)
37 # Add all extra files to the archive
38 ####################################
40 set(teshsuite_src ${teshsuite_src} PARENT_SCOPE)
41 set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/app-chainsend/app-chainsend.tesh
44 set(xml_files ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/actor-create/actor-create_d.xml
45 ${CMAKE_CURRENT_SOURCE_DIR}/actor-yield/actor-yield_d.xml
46 ${CMAKE_CURRENT_SOURCE_DIR}/app-chainsend/app-chainsend_d.xml
47 ${CMAKE_CURRENT_SOURCE_DIR}/app-pingpong/app-pingpong_d.xml
48 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/async-waitall_d.xml
49 ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/async-waitany_d.xml
53 actor-create actor-daemon actor-exiting actor-join actor-kill actor-migrate actor-suspend actor-yield
54 app-chainsend app-pingpong app-token-ring
55 async-waitall async-waitany
56 cloud-capping cloud-simple
61 ADD_TESH(c-${x} --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
62 --setenv bindir=${CMAKE_BINARY_DIR}/examples/c/${x}
63 --cd ${CMAKE_HOME_DIRECTORY}/examples/c/${x}
64 ${CMAKE_HOME_DIRECTORY}/examples/c/${x}/${x}.tesh)