For instance, how can I know if my executable target E depends on my library target L?
Let\'s image E depends on L1 and L2, but I don\'t know if they depend on L.
You can use CMake's "dependency graphs generator". Please read this link for details
cmake --graphviz=test.dot . ...