To use it, run cmake in the build tree:
cmake --graphviz=test.dot .
Dependencies within CMake:
Just CMake dependencies: