By using CMake you can automatically generate dependency graphs
(dot/graphviz) of the targets in your project. This works for
dependencies within the project, as well as dependencies to external
To use it, run cmake in the build tree:
cmake --graphviz=test.dot .
Customize graphviz output
The output can be customized with the following options in
CMakeGraphVizOptions.cmake (located in base source directory)