or other recommand program graph ?
I want to use the graph to understand the cmake command (target_include_directories 、 target_link_libraries 、 PUBLICE 、 PRIVATE)
like this
I tried your code, and it worked fine for me. Note that your code is set up such that it will trigger the CMake run at build time. Did you actually build the graphviz target?