Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
fix build without graphviz
authordegomme <augustin.degomme@unibas.ch>
Sun, 27 Mar 2016 17:25:25 +0000 (19:25 +0200)
committerdegomme <augustin.degomme@unibas.ch>
Sun, 27 Mar 2016 17:25:25 +0000 (19:25 +0200)
examples/simdag/CMakeLists.txt

index f4d2067..036d398 100644 (file)
@@ -1,4 +1,4 @@
-foreach(x availability daxload fail typed_tasks io properties throttling dag-dotload ptg-dotload schedule-dotload scheduling test)
+foreach(x availability daxload fail typed_tasks io properties throttling scheduling test)
   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,16 @@ foreach(x availability daxload fail typed_tasks io properties throttling dag-dot
   set(tesh_files   ${tesh_files}   ${CMAKE_CURRENT_SOURCE_DIR}/${x}/sd_${x}.tesh)
 endforeach()
 
+if(HAVE_GRAPHVIZ)
+  foreach(x dag-dotload ptg-dotload schedule-dotload)
+    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})
+    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()
+endif()
+
 add_executable       (goal_test goal/goal_test.c)
 target_link_libraries(goal_test simgrid)
 set_target_properties(goal_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/goal)