# dev-cafe/cmake-cookbook

CMake Cookbook recipes.

Repository: https://github.com/dev-cafe/cmake-cookbook
Canonical: https://ross.abutalabs.com/products/cmake-cookbook
Language: C++
License: NOASSERTION
License Family: other
Topics: cmake, cmake-recipes, cpp11, c, fortran, cmake-examples
Last push: 2021-06-01T21:39:14+00:00

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

## Adoption (not part of the score)
Stars 2848, forks 712 (observed 2026-08-28T04:07:25.533854+00:00)

## What it is
A collection of source code and examples for the CMake Cookbook published by Packt, organized as chapter-based recipes covering CMake build system usage. It teaches CMake from simple executables to libraries, environment detection, and external dependency handling.

## Use cases
- learn cmake build system from scratch
- find cmake examples for building static and shared libraries
- detect external libraries and programs with cmake
- configure compiler flags and build types with cmake
- set up cross-platform c++ builds
- integrate python and fortran into cmake projects

## When to choose
- you are learning CMake and want structured, tested examples
- you need reference recipes for common CMake build tasks
- you want a companion resource to the CMake Cookbook book

## When to avoid
- you need a modern actively maintained CMake tutorial with the latest CMake features
- you want a build tool rather than learning material
- you need project-specific build configuration help

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: build-tool, developer-tools, documentation
- domain: developer-tools, tutorials, programming-languages
- platform: cross-platform, cpp, python
- tags: cmake, build-systems, cookbook, recipes, cpp11, c, fortran, packt-book

## Member repositories
- dev-cafe/cmake-cookbook (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:25.533854+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-30T07:37:00.675602+00:00, confidence not recorded.
  - readme: https://github.com/dev-cafe/cmake-cookbook (fetched 2026-08-28T04:07:25.533854+00:00, sha 70db223bd46c)
- Data as of 2026-08-30T08:39:29.467469+00:00.
