diff options
author | Dario Lombardo <lomato@gmail.com> | 2018-11-10 14:25:36 +0100 |
---|---|---|
committer | Michael Mann <mmann78@netscape.net> | 2018-11-11 00:15:01 +0000 |
commit | fef9c0aa62cb289e0b6606bbeba073ba45808a19 (patch) | |
tree | 46564774d11504fcdc33ffeb95c021e7c658f627 /CMakeGraphVizOptions.cmake | |
parent | 961f1388e443b5b08594ec7e9a8d9628f039d4d0 (diff) |
cmake: Add CMakeGraphVizOptions.cmake to improve the generated layout.
Adjust the CMake configuration to generate grapvhiz files with an
improved layout.
Documentation: https://cmake.org/cmake/help/latest/module/CMakeGraphVizOptions.html
To generate a dependency graph from the build directory (example):
cmake . --graphviz=wireshark.dot
fdp wireshark.dot -Tpdf -o wireshark.pdf
Change-Id: Icf238668004224b9d373d8080e549b9b583f676c
Reviewed-on: https://code.wireshark.org/review/30564
Reviewed-by: Peter Wu <peter@lekensteyn.nl>
Reviewed-by: Michael Mann <mmann78@netscape.net>
Diffstat (limited to 'CMakeGraphVizOptions.cmake')
-rw-r--r-- | CMakeGraphVizOptions.cmake | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/CMakeGraphVizOptions.cmake b/CMakeGraphVizOptions.cmake new file mode 100644 index 0000000000..35748c28fc --- /dev/null +++ b/CMakeGraphVizOptions.cmake @@ -0,0 +1,11 @@ +# CMake configuration to control the look and contents of generated graphviz files. +# +# Documentation: https://cmake.org/cmake/help/latest/module/CMakeGraphVizOptions.html +# +# To generate a dependency graph from the build directory: +# +# cmake . --graphviz=wireshark.dot +# fdp wireshark.dot -Tpdf -o wireshark.pdf + +set(GRAPHVIZ_GRAPH_NAME "Wireshark dependency graph") +set(GRAPHVIZ_GRAPH_HEADER \tsize="5!" \n\tgraph[splines="true",forcelabels="true",overlap="false"] \n) |