CMakeDependencyDiagram – Interactive target dependency visualization for CMake

1 renn0xtek9 1 8/10/2025, 7:49:20 AM github.com ↗

Comments (1)

renn0xtek9 · 2h ago
I’ve built a small third-party CMake module called CMakeDependencyDiagram that helps you explore and understand your project’s build dependencies.

It works by leveraging CMake’s --graphviz output and turning it into an interactive minimal web page. Instead of staring at a static .dot file, you can click around, zoom, and navigate the dependency graph right in your browser.

Highlights:

Drop-in CMake module – no modifications to your project sources required.

Uses Graphviz for layout, outputs HTML/JS for exploration.

Helps track down circular dependencies, see build structure at a glance, and onboard new devs faster.

No external server needed – the generated HTML is self-contained and can be opened locally or shared.

Repo: https://github.com/renn0xtek9/CMakeDependencyDiagram

Feedback, suggestions, and contributions welcome!