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>
This commit is contained in:
Dario Lombardo 2018-11-10 14:25:36 +01:00 committed by Michael Mann
parent 961f1388e4
commit fef9c0aa62
1 changed files with 11 additions and 0 deletions

View File

@ -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)