Skip to content

Instantly share code, notes, and snippets.

@SimeonEhrig
Created July 28, 2022 08:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SimeonEhrig/d93309091c8872b98f2771d77f916133 to your computer and use it in GitHub Desktop.
Save SimeonEhrig/d93309091c8872b98f2771d77f916133 to your computer and use it in GitHub Desktop.
Creating the dependency graph from a CMake project
# go to build directory
# expect, that the cmake configure step is already done in the build folder
cd build
# create extra folder, because a lot of files will be created
mkdir graph
cmake . --graphviz=graph/app.dot
cd graph
# render dot file to svg
dot -Tsvg app.dot -o app.svg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment