Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
94a35c850f2c8da5fb61c519088c972110aa20bf
[simgrid.git] / examples / simdag / CMakeLists.txt
1 foreach(x availability daxload fail typed_tasks io properties throttling dag-dotload ptg-dotload schedule-dotload scheduling test)
2   add_executable       (sd_${x}     ${x}/sd_${x}.c)
3   target_link_libraries(sd_${x}     simgrid)
4   set_target_properties(sd_${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
5   set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.c)
6   set(tesh_files   ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.tesh)
7 endforeach()
8
9 add_executable       (goal_test goal/goal_test.c)
10 target_link_libraries(goal_test simgrid)
11 set_target_properties(goal_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/goal)
12
13 set(tesh_files   ${tesh_files}                                                                             PARENT_SCOPE)
14 set(examples_src ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/goal/goal_test.c                             PARENT_SCOPE)
15 set(xml_files    ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/scheduling/Montage_25.xml
16                                   ${CMAKE_CURRENT_SOURCE_DIR}/dax/simple_dax_with_cycle.xml
17                                   ${CMAKE_CURRENT_SOURCE_DIR}/dax/smalldax.xml                             PARENT_SCOPE)
18 set(bin_files    ${bin_files}     ${CMAKE_CURRENT_SOURCE_DIR}/platform_script.lua                          PARENT_SCOPE)
19 set(txt_files    ${txt_files}     ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag_with_cycle.dot
20                                   ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag.dot
21                                   ${CMAKE_CURRENT_SOURCE_DIR}/ptg-dotload/ptg.dot
22                                   ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_bad_schedule.dot
23                                   ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_good_schedule.dot  PARENT_SCOPE)
24
25 foreach(x availability daxload fail typed_tasks io properties throttling dag-dotload ptg-dotload schedule-dotload scheduling test)
26   ADD_TESH(simdag-${x} --setenv srcdir=${CMAKE_HOME_DIRECTORY}/examples/simdag --cd ${CMAKE_BINARY_DIR}/examples/simdag ${CMAKE_HOME_DIRECTORY}/examples/simdag/${x}/sd_${x}.tesh)
27 endforeach()