foreach(x daxload fail typed_tasks properties throttling scheduling)
- add_executable (sd_${x} ${x}/sd_${x}.c)
+ add_executable (sd_${x} EXCLUDE_FROM_ALL ${x}/sd_${x}.c)
target_link_libraries(sd_${x} simgrid)
set_target_properties(sd_${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
+ add_dependencies(tests sd_${x})
set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.c)
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)
+ add_executable (sd_${x} EXCLUDE_FROM_ALL ${x}/sd_${x}.cpp)
target_link_libraries(sd_${x} simgrid)
set_target_properties(sd_${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
+ add_dependencies(tests sd_${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)
+ add_executable (sd_${x} EXCLUDE_FROM_ALL ${x}/sd_${x}.c)
target_link_libraries(sd_${x} simgrid)
set_target_properties(sd_${x} PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/${x})
+ add_dependencies(tests sd_${x})
endif()
set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.c)
set(tesh_files ${tesh_files} ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.tesh)
endforeach()
-add_executable (goal_test goal/goal_test.c)
+add_executable (goal_test EXCLUDE_FROM_ALL goal/goal_test.c)
target_link_libraries(goal_test simgrid)
set_target_properties(goal_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/goal)
+add_dependencies(tests goal_test)
set(tesh_files ${tesh_files} PARENT_SCOPE)
set(examples_src ${examples_src} ${CMAKE_CURRENT_SOURCE_DIR}/goal/goal_test.c PARENT_SCOPE)