Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
a5f0800696faae76e5c09e54734541e90f70de77
[simgrid.git] / examples / simdag / CMakeLists.txt
1 foreach(x availability daxload fail typed_tasks io properties throttling 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 foreach(x availability daxload fail typed_tasks io properties throttling scheduling test)
10   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)
11 endforeach()
12
13 if(HAVE_GRAPHVIZ)
14   foreach(x dag-dotload ptg-dotload schedule-dotload)
15     add_executable       (sd_${x}     ${x}/sd_${x}.c)
16     target_link_libraries(sd_${x}     simgrid)
17     set_target_properties(sd_${x}  PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
18
19     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)
20   endforeach()
21 endif()
22 foreach(x dag-dotload ptg-dotload schedule-dotload)
23   set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.c)
24   set(tesh_files   ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.tesh)
25 endforeach()
26
27 add_executable       (goal_test goal/goal_test.c)
28 target_link_libraries(goal_test simgrid)
29 set_target_properties(goal_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/goal)
30
31 set(tesh_files   ${tesh_files}                                                                             PARENT_SCOPE)
32 set(examples_src ${examples_src}  ${CMAKE_CURRENT_SOURCE_DIR}/goal/goal_test.c                             PARENT_SCOPE)
33 set(xml_files    ${xml_files}     ${CMAKE_CURRENT_SOURCE_DIR}/scheduling/Montage_25.xml
34                                   ${CMAKE_CURRENT_SOURCE_DIR}/daxload/simple_dax_with_cycle.xml
35                                   ${CMAKE_CURRENT_SOURCE_DIR}/daxload/smalldax.xml                         PARENT_SCOPE)
36 set(txt_files    ${txt_files}     ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag_with_cycle.dot
37                                   ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag.dot
38                                   ${CMAKE_CURRENT_SOURCE_DIR}/ptg-dotload/ptg.dot
39                                   ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_bad_schedule.dot
40                                   ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_good_schedule.dot  PARENT_SCOPE)