hello,
All my custom targets are missing in the graphviz dependency graph. The build has an executable that is dependent on them!
How can I generate a dependency graph for custom targets?
add_executable( dummyExe ${CMAKE_CURRENT_BINARY_DIR}/main )
add_custom_target( tgt1 )
add_dependencies( dummyExe tgt1 )
a graphviz input file that will contain all the library and executable dependencies in the project
how do I read this? The graph only creates dependencies for targets of type EXECUTABLE?
Which kind of dependencies? It doesn’t seem to work when using add_dependencies
. Does it only work for file level dependencies?
add_executable( dummyExe ${CMAKE_CURRENT_BINARY_DIR}/main )
add_library( dummyLib ${CMAKE_CURRENT_BINARY_DIR}/lib )
add_dependencies( dummyExe dummyLib )