# pr0g/cmake-examples

A collection of as simple as possible, modern CMake projects

Repository: https://github.com/pr0g/cmake-examples
Canonical: https://ross.abutalabs.com/products/pr0g-cmake-examples
Language: CMake
License: MIT
License Family: permissive
Topics: cmake, cmake-examples, cmake-scripts, cmakelists
Last push: 2025-02-22T22:13:03+00:00

## Health v2 (maintenance only)
Score: 36/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 8, release rhythm 35, longevity 100
- inputs: {"age_days": 2734, "days_push": 557, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1237, forks 68 (observed 2026-08-28T04:04:05.290879+00:00)

## What it is
A curated collection of minimal, modern CMake example projects explaining what each part of a CMakeLists.txt file does, with a special focus on installing CMake libraries. It is a hands-on learning resource rather than a tool, written by a self-described non-expert sharing their CMake learning journey.

## Use cases
- learn modern CMake with simple examples
- understand how CMake install commands work
- figure out what each line of a CMakeLists.txt does
- find minimal CMake project templates to copy from
- learn how to install and export a CMake library
- get started with CMake targets and build scripts

## When to choose
- You are learning modern CMake and want small, digestible example projects
- You struggle with CMake's install commands and library exporting
- You want copy-paste starting points for structuring CMakeLists.txt files

## When to avoid
- You need authoritative, expert-verified CMake documentation or a comprehensive reference
- You need a production-ready build template with testing, CI, and packaging already wired up
- You are looking for an interactive course or book rather than example code (though the author's Minimal CMake book exists separately)

## Facets
- artifact type: learning-resource
- maturity: active
- function: build-tool, developer-tools, documentation
- domain: developer-tools, tutorials
- platform: cross-platform, cli, cpp
- tags: cmake, modern-cmake, cmake-examples, build-system, cmakelists-txt, installing-libraries, tutorial, example-projects

## Member repositories
- pr0g/cmake-examples (main) score 36

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:05.290879+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T08:21:54.275700+00:00, confidence not recorded.
  - readme: https://github.com/pr0g/cmake-examples (fetched 2026-08-28T04:04:05.290879+00:00, sha 346c828b1c66)
- Data as of 2026-08-30T08:39:29.467469+00:00.
