1 ###############################################################################
2 # Top contributors (to current version):
5 # This file is part of the cvc5 project.
7 # Copyright (c) 2009-2021 by the authors listed in the file AUTHORS
8 # in the top-level source directory and their institutional affiliations.
9 # All rights reserved. See the file COPYING in the top-level source
10 # directory for licensing information.
11 # #############################################################################
12 # Provides cmake target target-graphs with generates (png) dependency graphs
13 # to visualize the interdependencies of all cmake targets.
16 get_target_property(APITESTS build-apitests MANUALLY_ADDED_DEPENDENCIES)
17 string(REPLACE ";" " " APITESTS "${APITESTS}")
20 cmake/CMakeGraphVizOptions.cmake.in
21 ${CMAKE_BINARY_DIR}/CMakeGraphVizOptions.cmake
25 add_custom_target(target-graphs
27 ${CMAKE_COMMAND} --graphviz=target-graphs/graph.dot ${CMAKE_SOURCE_DIR}
29 find target-graphs/ -iname "graph.dot*" -and \! -iname "*.png"
30 -exec dot -Tpng -O {} +
31 WORKING_DIRECTORY ${CMAKE_BINARY_DIR}