This implements a thin CMake wrapper around the libcamera meson project. It only builds the main library without examples, tests or documentation.
cmake -B build -GNinja
cmake --build buildThe number of parallel processes can be limited by setting NJOBS:
cmake -B build -GNinja -DNJOBS=2
cmake --build buildWhen using this as part of a colcon workspace, NJOBS can be set via --cmake-args:
colcon build --cmake-args="-DNJOBS=2"