cbuild

Configure and build a CMake project. The command collects CMake and compiler metadata, writes version badges, generates a compilation database, and creates an RST build report. Requested output files are registered as build artifacts.

For programmatic usage, see cmake.

Default run name: cbuild

cikit cbuild . -G Ninja -b rel -j 4 -D CMAKE_BUILD_TYPE=Release -a firmware.bin

Arguments and options

  • project_dir: CMake source directory (default: project root).

  • -b, --build-name NAME: Build-directory name (default: rel).

  • -G, --generator NAME: CMake generator (default: CMake selection).

  • -j, --jobs N: Parallel build jobs (default: 0, tool default).

  • -D, --define NAME=VALUE: Additional CMake definition; repeatable.

  • -a, --artifact PATH: Output relative to the CMake build directory; repeatable.

  • --clean / --no-clean: Clean before configuration (default: clean).

  • --compiler-language NAME: Language for compiler metadata (default: C).

Requires: CMake, a configured compiler/toolchain, and the selected build generator (for example Ninja).

Results: CMake/compiler badges, configure/build metrics, command logs, requested build artifacts, and a build report. For the underlying build data, see Builds.