<div dir="ltr">Hi!<div>I'm trying to understand a large project built with CMake, and think it would be very helpful to get a view of which CMake-file "calls" which other CMake-file. I'm interested in the chain of calls using "add_subdirectory" and "include".</div><div><br></div><div>I have looked at the options "--debug-output" and "--trace", but they only give a "flat" view of the call graph. And reconstructing a tree-like representation from that info seems non-trivial to me.</div><div><br></div><div>I'm hoping to get something like this (I hope the intended indentation can be seen):</div><div><br></div><div>CMakeLists.txt</div><div><div>.... MyMacros/Setup.cmake</div><div><div>.... .... MyMacros/OtherStuff.cmake</div><div><div><div><div>.... lib1/CMakeLists.txt</div></div></div><div><div><div><div>.... lib2/CMakeLists.txt</div></div></div><div>.... Misc/CMakeLists.txt</div><div><div><div><div><div><div><div>.... .... prog_a/CMakeLists.txt</div></div></div><div><div><div><div><div><div><div><div><div>.... .... prog_b/CMakeLists.txt</div></div></div><div><div><div><div><div><div>.... foo/CMakeLists.txt</div></div></div><div><div><div><br class="gmail-Apple-interchange-newline"></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div></div><div>Is there some way to accomplish this, or something similar?</div><div><br></div><div>/Johan Holmberg</div><div><br></div></div>