Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert plugin-hostload
[simgrid.git] / examples / c / CMakeLists.txt
1 foreach(x
2         actor-create actor-daemon actor-exiting actor-join actor-kill actor-migrate actor-suspend actor-yield
3         app-pingpong app-token-ring 
4         async-waitall async-waitany
5         cloud-simple
6         energy-exec
7         io-disk-raw
8         plugin-hostload)
9   add_executable       (${x}-c EXCLUDE_FROM_ALL ${x}/${x}.c)
10   target_link_libraries(${x}-c simgrid)
11   set_target_properties(${x}-c PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
12   add_dependencies(tests ${x}-c)
13
14   set(tesh_files    ${tesh_files}    ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.tesh)
15   set(teshsuite_src ${teshsuite_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/${x}.c)
16 endforeach()
17
18 set(teshsuite_src ${teshsuite_src}  PARENT_SCOPE)
19 set(tesh_files    ${tesh_files}     PARENT_SCOPE)
20
21 set(xml_files     ${xml_files} ${CMAKE_CURRENT_SOURCE_DIR}/actor-create/actor-create_d.xml
22                                ${CMAKE_CURRENT_SOURCE_DIR}/actor-yield/actor-yield_d.xml
23                                ${CMAKE_CURRENT_SOURCE_DIR}/app-pingpong/app-pingpong_d.xml
24                                ${CMAKE_CURRENT_SOURCE_DIR}/async-waitall/async-waitall_d.xml
25                                ${CMAKE_CURRENT_SOURCE_DIR}/async-waitany/async-waitany_d.xml
26                                PARENT_SCOPE)
27
28 foreach(x
29         actor-create actor-daemon actor-exiting actor-join actor-kill actor-migrate actor-suspend actor-yield
30         app-pingpong app-token-ring
31         async-waitall async-waitany
32         cloud-simple
33         energy-exec
34         io-disk-raw
35         plugin-hostload)
36   ADD_TESH(c-${x} --setenv platfdir=${CMAKE_HOME_DIRECTORY}/examples/platforms
37                   --setenv bindir=${CMAKE_BINARY_DIR}/examples/c/${x}
38                   --cd ${CMAKE_HOME_DIRECTORY}/examples/c/${x}
39                   ${CMAKE_HOME_DIRECTORY}/examples/c/${x}/${x}.tesh)
40 endforeach()