cja
A CMake-compatible build system that generates Ninja build files.
Build a project with a CMakeLists.txt using:
cja
ninja
This is equivalent to the following with CMake:
cmake -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug \
-DCMAKE_COLOR_DIAGNOSTICS=1 -DCMAKE_EXPORT_COMPILE_COMMANDS=1
ninja -Cbuild
Install
pip install cja
Or, if you're in a managed Python environment:
pipx install cja
Comparison to CMake
- The
build.ninjafile is generated in your project root, not in the build directory. To allow multiple build configurations in parallel, the file name is<builddir>.ninja. - Paths are relative to the project root, while CMake uses absolute paths. This is faster, reduces output, and also reduces binary size as paths (e.g. for debug symbols) are shorter. When reading output from a Docker container, this lets you click paths and open the correct files in your local editor.
- Instead of a separate tool like CTest, cja generates a phony
testtarget that runs all tests as part of the Ninja build graph, so tests can start as soon as the first test binary is ready. - Colors for compiler diagnostics are enabled by default.
_builddir_/compile_commands.jsonis always generated.- More colorful, simplified output. For example, when downloading dependencies, cja shows progress bars using
Rich, while CMake shows no output (or simple multi-line output when
-DFETCHCONTENT_QUIET=0is specified).
Limitations to keep cja simple:
- Only generates Ninja build files.
- Out-of-tree builds aren't allowed.
- Only supports Linux, macOS, and Windows.
- Only supports clang with a GNU-like command line on Windows.
Build Subcommand
cja supports a build subcommand, which runs ninja automatically afterward.
cja build --release
Equivalent to calling:
cja -Bbuild-release -DCMAKE_BUILD_TYPE=Release
ninja -f build-release.ninja
Run Subcommand
cja also generates a run phony target that executes the first executable (or the one set via
VS_STARTUP_PROJECT) in your CMakeLists.txt.
Release files for cja 0.7.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| cja-0.7.0.tar.gz | 105.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| cja-0.7.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 219.5 kB
Release files / cja-0.7.0.tar.gz
| Download URL | cja-0.7.0.tar.gz |
|---|---|
| Size | 105.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0fd8d37a8b18882d6ac52f4d8b10b12cbb52345073f73113a1ff68633d5f9b3
|
|
BLAKE2b-256 checksum How to use checksums |
01861359f669b7ca7166972ff757e0b7a7e3d757aca2fd05504182cf8fa16320
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency logRelease files / cja-0.7.0-py3-none-any.whl
| Download URL | cja-0.7.0-py3-none-any.whl |
|---|---|
| Size | 113.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
028d7c2ec6ee5ca558b6d77c3ebcc5485d4a6e92ab2ace74fefd110f15ea3bda
|
|
BLAKE2b-256 checksum How to use checksums |
5c326c45916571407395955a5d5f4bbb909be6bc4f5c0c0e6c55595ce3a48ed7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 21, 2026.
Transparency log