Sourcetrail icon indicating copy to clipboard operation
Sourcetrail copied to clipboard

Visualising CMake buildsystems

Open simonsan opened this issue 4 years ago • 2 comments

Our CMake buildsystem was growing pretty big over the years and for a proper documentation I would love to have a tool at hand, that I can visualize the different processes with that are going on during configuration of the build directory. I think Sourcetrail might be the right tool for this and it is already supporting C which might make it easier to adopt to a C-like syntax of CMake.

ref.: CoatiSoftware/SourcetrailDB#30

simonsan avatar May 10 '20 00:05 simonsan

I am definitely also in favor of such a feature.

For a simple start, it might not be necessary to parse the CMake language, but use its graphviz output and interactively display that. https://cmake.org/cmake/help/latest/module/CMakeGraphVizOptions.html

diiigle avatar Jan 06 '21 14:01 diiigle

GraphViz output is pretty limited in that regards and it shows you just the connections between different libs. Would still prefer how the functions in itself are connected and which functions call which cmake module etc.

simonsan avatar Jan 06 '21 14:01 simonsan