X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/8166f4f6087620a3e015e0bed3ed4b146b6ff472..0c3417410f5e66dd4d165d5435c7ff301483a25d:/examples/simdag/CMakeLists.txt diff --git a/examples/simdag/CMakeLists.txt b/examples/simdag/CMakeLists.txt index 11ae13588c..26a8a1b5ed 100644 --- a/examples/simdag/CMakeLists.txt +++ b/examples/simdag/CMakeLists.txt @@ -1,4 +1,4 @@ -foreach(x availability daxload fail typed_tasks io properties throttling scheduling test) +foreach(x availability daxload fail typed_tasks properties throttling scheduling) add_executable (sd_${x} ${x}/sd_${x}.c) target_link_libraries(sd_${x} simgrid) set_target_properties(sd_${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x}) @@ -6,6 +6,14 @@ foreach(x availability daxload fail typed_tasks io properties throttling schedul set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.tesh) endforeach() +foreach(x test) + add_executable (sd_${x} ${x}/sd_${x}.cpp) + target_link_libraries(sd_${x} simgrid) + set_target_properties(sd_${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x}) + set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.cpp) + set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.tesh) +endforeach() + foreach(x dag-dotload ptg-dotload schedule-dotload) if(HAVE_GRAPHVIZ) add_executable (sd_${x} ${x}/sd_${x}.c) @@ -29,9 +37,10 @@ set(txt_files ${txt_files} ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag_wi ${CMAKE_CURRENT_SOURCE_DIR}/dag-dotload/dag.dot ${CMAKE_CURRENT_SOURCE_DIR}/ptg-dotload/ptg.dot ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_bad_schedule.dot - ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_good_schedule.dot PARENT_SCOPE) + ${CMAKE_CURRENT_SOURCE_DIR}/schedule-dotload/dag_with_good_schedule.dot + ${CMAKE_CURRENT_SOURCE_DIR}/scheduling/expected_output.jed PARENT_SCOPE) -foreach(x availability daxload fail typed_tasks io properties throttling scheduling test) +foreach(x availability daxload fail typed_tasks properties throttling scheduling test) 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) endforeach() @@ -39,4 +48,4 @@ if(HAVE_GRAPHVIZ) foreach(x dag-dotload ptg-dotload schedule-dotload) 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) endforeach() -endif() \ No newline at end of file +endif()