HoneaDevWrx Logo HoneaDevWrx Documentation
Developer Tools • CMakeVis

Understand, Configure & Accelerate C/C++ Build Systems Visually

CMakeVis gives software engineers clear visual command over multi-directory build topologies, compiler flags, CMakePresets.json inheritance hierarchies, and package dependencies—without manually scripting CMake boilerplate or fighting toolchain nuances.

CMakeVis Dependency Graph and Presets Designer

Product Purpose & Overview

Managing non-trivial C and C++ repositories routinely slows teams down with opaque CMakeLists.txt scripts, transitive dependency errors, compiler flag drift, and fragile package manager handoffs. CMakeVis is engineered for Windows 10/11 and Linux to help developers visually comprehend their build architecture and configure targets, toolchains, and external packages rapidly—accelerating iteration without hand-scripting build-system boilerplate.

Visual Architecture Comprehension

Inspect project executables, static/shared/interface libraries, transitive linkage scopes, and imported packages on an interactive node-and-wire graph.

Script-Free Configuration & Presets

Wire dependencies with cycle detection, manage token-level compiler flags, model CMakePresets.json inheritance, and chain vcpkg + Conan visually.

Safe Round-Trip on Existing Repos

Load hand-authored multi-directory CMake projects, preview predicted install trees prior to compiling, and apply scoped updates without overwriting custom scripts.

Documentation Contents

1. Projects, Subprojects & Baseline Snapshots

2. Workspace Shell, Ribbons, Explorer & Target Inspector

The main desktop window organizes project navigation, visual graph editing, toolchain configuration, and build output into four synchronized regions with collapsible splitters.

CMakeVis full workspace layout showing Top Ribbon, Left Explorer, Subproject Clusters Dependency Graph, Right Target Information Inspector, and Bottom Build Console
CMakeVis Workspace — Collapsible Build & Toolchain Ribbon, Left Explorer drawers, Subproject Clusters graph canvas, Right Target Information Inspector, and Bottom Build Console.

3. Dependency Graph Interactions, Visual Semantics, Filtering & Object Libraries

The interactive Graph canvas transforms multi-target CMake scripts into a spatial dependency map with live cycle prevention, directional highlighting, and customizable layouts.

CMakeVis Layered Flow dependency graph showing cli_probe selected with transitive dependency tree highlighting and inline C2065 diagnostic badge
Layered Flow & Transitive Highlighting — Selecting cli_probe illuminates its downstream dependency chain (dsp_engine, core_math, fmt::fmt, spdlog::spdlog) and displays inline build diagnostics while attenuating unrelated targets.

Navigation & Wiring Controls (Tools / Filter / Layout Tabs)

Graph Element Visual Style & Semantics
ExecutableBlue-accented solid card labeled EXE.
Project LibrariesEmerald-accented solid cards labeled STATIC, SHARED, MODULE, or IFACE; displays an embedded object-library count badge (· [obj N]) when OBJECT libraries are assigned.
Custom TargetAmber-accented solid card labeled CUSTOM.
Imported / Package TargetsDashed-border cards styled by origin: VCPKG IMP (violet), CONAN IMP (magenta), EXT IMP (orange), FETCH IMP (amber), or IMPORTED (slate).
Dependency WiresDirected cubic Beziers with midpoint scope pills: PRIV (emerald), PUB (cyan), IFACE (violet), and dotted DEP (add_dependencies); appends * when guarded by a generator expression.

4. Target Properties Modal & Per-Target Configuration

Double-clicking any graph node (or selecting Edit Properties & Files... in the Inspector) opens the five-tab Target Properties & Files modal operating on a working copy until you select Apply & Save:

  1. General & Properties: Edit target name, target kind, project/subproject assignment, C++ standard (C++11–C++23 or Inherit Project Default), C standard (C90–C23), seven standard string properties (OUTPUT_NAME, PREFIX, SUFFIX, DEBUG_POSTFIX, VERSION, SOVERSION, FOLDER), eight boolean property toggles (POSITION_INDEPENDENT_CODE, WINDOWS_EXPORT_ALL_SYMBOLS, WIN32_EXECUTABLE, AUTOMOC, AUTOUIC, AUTORCC, INTERPROCEDURAL_OPTIMIZATION, EXCLUDE_FROM_ALL), and arbitrary custom key/value properties.
  2. Files & PCH: Add existing files, create stub files, invoke + Scan Folder... to discover source/header/UI/QRC files, click + Assign All Found for unassigned subproject files, set file category (Source, Header, PublicHeader, Resource) and visibility, remove missing files, and manage target_precompile_headers.
  3. Dependencies & Objects: Link/unlink target dependencies, toggle Private / Public / Interface scope, compose OBJECT library dependencies ($<TARGET_OBJECTS:...>), and edit target_link_directories.
  4. Compiler & Linker Flags: Inspect inherited directory and toolchain flags (click chips to record target-level suppression in the inspector), construct generator-guarded flags using the Per-Config & Language Flag Builder (emitting $<$<CONFIG:...>:...> and $<$<COMPILE_LANGUAGE:...>:...>), and edit scoped Include Directories, Compile Definitions, Compile Options, and Link Options.
  5. Install & Custom Steps: Toggle target artifact installation, public header installation, and OPTIONAL install rules; set RUNTIME, LIBRARY, ARCHIVE, and PUBLIC_HEADER destinations, COMPONENT, and EXPORT set name; and configure PreBuild, PreLink, and PostBuild custom commands.

Use Reset Properties to Defaults to restore CMake defaults while keeping assigned source files and dependency links, or Revert to Loaded CMake (enabled for disk-loaded projects) to restore the target's exact baseline snapshot.

5. Build Options, Cache Variables & Token-Level Compiler/Linker Flags

Open Variables & Options in the center workspace to manage global build switches, cache entries, toolchain flag tokens, and preset quick-switches across three sub-tabs:

6. Modern CMake Presets, Provenance & Toolchain Chaining

Under Environment & Toolchain → CMake Presets & Inheritance (or via Presets & Inheritance... in the top ribbon), CMakeVis authors and resolves native CMakePresets.json and CMakeUserPresets.json workflows (cmake -S <root> --preset <name>) across MSVC, Windows clang-cl, GCC, Clang, MinGW, Ninja, and Visual Studio generators.

CMakeVis Modern CMake Presets and Inheritance Designer showing inheritance hierarchy, chained vcpkg and Conan selection, and resolved configuration provenance
CMake Presets & Inheritance Designer — Multi-level inheritance tree, cycle-safe parent selection, simultaneous vcpkg + Conan toolchain chaining, and origin provenance summary.

7. Package Managers, Local vcpkg Port Overlays & SDK Wizards

Open Packages & External in the center workspace to integrate host SDKs, curated package registries, local port overlays, and external source builds:

8. Pre-Flight Install Preview & Dual-Mode CMake Source Editor

Verify deployment trees and inspect generated or hand-authored manifests before triggering a build using the Install Preview and CMake Source workspace tabs.

CMakeVis Install Preview pre-flight deployment tree alongside token-level Compiler and Linker Flag management
Pre-Flight Install Preview & Token-Level Flags — Simulated installation directory hierarchy with PLANNED artifact tracking alongside interactive compiler/linker flag token controls.

9. Build Execution Pipeline, Smart Auto-Scroll & Diagnostic Correlation

10. Visual Studio Code Integration & CLI Reference

CMakeVis discovers the local Visual Studio Code CLI (code / code.cmd) across five entry points: the top Project → Open in VS Code button, per-subproject VS Code buttons in Left Explorer, VS Code / Folder in Code / per-file Code buttons in Target Information, Open in VS Code in the CMake Source editor, and per-diagnostic VS Code actions in the Diagnostics drawer (jumping directly via code -g <file>:<line>).

CMakeVis also ships a companion Visual Studio Code extension and command-line flags (--open <path>, --preset <name>, --self-test, and --self-test --screenshot <png> for exporting a 1400×900 dependency graph snapshot). See the CMakeVis Companion VS Code Extension Documentation →