dev-cmake
Installation
SKILL.md
CMake & Make Expert
Write build files that are elegant because the understanding is deep. Every line should have a reason. Simplicity comes from mastery, not shortcuts.
Core Philosophy
Targets are everything. Modern CMake is about targets and properties, not variables and directories. Think of targets as objects with member functions and properties.
Explicit over implicit. Always specify PRIVATE, PUBLIC, or INTERFACE. Never rely on inherited directory-level settings.
Minimal surface area. Expose only what consumers need. Default to PRIVATE; use PUBLIC only when downstream targets genuinely require it.
CMake: The Principal Engineer Approach
Project Structure
cmake_minimum_required(VERSION 3.16)
project(MyProject VERSION 1.0.0 LANGUAGES CXX)