What problem does it solve?
Modern CMake best practices including cross-platform builds, static linking ( Linux full static, macOS hybrid ), dependency management with pkg-config and find_library, target-based configuration, and platform-specific patterns. Use when writing CMakeLists.txt, configuring builds, linking libraries, or setting up cross-platform C/C++ projects.
Core Features & Use Cases
- Cross-platform CMake patterns with target-based configuration and explicit find_package/find_library fallbacks.
- Platform-specific static linking strategies for Linux and macOS, plus guidance on debugging and verification.
- Dependency management workflows using pkg-config and explicit library discovery to support deterministic builds.
Quick Start
Validate your project with cmake-validator.py CMakeLists.txt to migrate legacy patterns to modern target-based CMake.