-foreach(x async-waitany)
- add_executable (${x} EXCLUDE_FROM_ALL ${x}/${x}.c)
- target_link_libraries(${x} simgrid)
- set_target_properties(${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
- add_dependencies(tests ${x})
+# Regular examples: with only one source and tested with all factories
+######################################################################
+
+foreach(x
+ actor-create actor-daemon actor-exiting actor-join actor-kill actor-lifetime actor-migrate actor-stacksize
+ actor-suspend actor-yield
+ app-pingpong app-token-ring
+ async-wait async-waitall async-waitany
+ cloud-capping cloud-migration cloud-simple
+ exec-async exec-basic exec-dvfs exec-remote exec-waitany
+ energy-exec energy-exec-ptask energy-vm
+ io-disk-raw io-file-remote
+ platform-failures
+ plugin-hostload)
+ add_executable (${x}-c EXCLUDE_FROM_ALL ${x}/${x}.c)
+ target_link_libraries(${x}-c simgrid)
+ set_target_properties(${x}-c PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
+ add_dependencies(tests ${x}-c)