diff options
author | Gereon Kremer <nafur42@gmail.com> | 2021-10-21 05:10:20 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-21 12:10:20 +0000 |
commit | 35792ea9345e792aa9ae4748aced5213f4bbfa76 (patch) | |
tree | d991122f8552dcb8d5ddb3bf4f8f9a5a43d68b01 /cmake/CMakeGraphVizOptions.cmake.in | |
parent | 5ee9b4685a2aeceebeb109b9578be0562efbf700 (diff) |
Add setup to generate graphs for cmake target dependencies (#7383)
This adds the target `target-graphs` that generated graphs of cmake dependencies based on `cmake --graphviz`. It is a nice to tool to debug the cmake setup in some cases.
Diffstat (limited to 'cmake/CMakeGraphVizOptions.cmake.in')
-rw-r--r-- | cmake/CMakeGraphVizOptions.cmake.in | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/cmake/CMakeGraphVizOptions.cmake.in b/cmake/CMakeGraphVizOptions.cmake.in new file mode 100644 index 000000000..d3be598b3 --- /dev/null +++ b/cmake/CMakeGraphVizOptions.cmake.in @@ -0,0 +1,28 @@ +############################################################################### +# Top contributors (to current version): +# Gereon Kremer +# +# This file is part of the cvc5 project. +# +# Copyright (c) 2009-2021 by the authors listed in the file AUTHORS +# in the top-level source directory and their institutional affiliations. +# All rights reserved. See the file COPYING in the top-level source +# directory for licensing information. +# ############################################################################# +# Configuration file for the generation of cmake dependency graphs of cmake +# targets. +## + +set(CTX "@CMAKE_BINARY_DIR@/src/context/CMakeFiles/cvc5base.dir/") +set(BASE "@CMAKE_BINARY_DIR@/src/base/CMakeFiles/cvc5base.dir/") + +# ignore targets that do not actually help the understanding or are (usually) +# not interesting: tests and object files. +set(GRAPHVIZ_IGNORE_TARGETS + main-test + @APITESTS@ + ${CTX}context.cpp.o ${CTX}context_mm.cpp.o + ${BASE}check.cpp.o ${BASE}configuration.cpp.o ${BASE}exception.cpp.o + ${BASE}git_versioninfo.cpp.o ${BASE}listener.cpp.o ${BASE}output.cpp.o +) +set(GRAPHVIZ_GENERATE_DEPENDERS FALSE)
\ No newline at end of file |