Created
July 28, 2022 08:01
-
-
Save SimeonEhrig/d93309091c8872b98f2771d77f916133 to your computer and use it in GitHub Desktop.
Creating the dependency graph from a CMake project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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