The following are prerequsite to building trimja:
- CMake
- A valid C++20 compiler
The following are optional:
- ninja for running unit tests
- clang-format for formatting code before submitting pull requests
trimja is a standard CMake project and can be built in a variety of ways, e.g. Microsoft Visual Studio supports opening CMake projects directly.
A standard workflow to build a Debug version into the build
folder would look
like:
- configure:
cmake -B build -DCMAKE_BUILD_TYPE=Debug
- build:
cmake --build build --config Debug
- test:
ctest --test-dir build --build-config Debug --output-on-failure
- package:
cmake --build build --config Debug --target package
Note that when using Microsoft Visual Studio these commands need to be run from the developer console.
- Create a pull request that
- bumps the version number in
CMakeLists.txt
- has
Release vA.B.C
as the commit title (for consistency only) - has the release notes for this version in the commit body
- bumps the version number in
- Merge the pull request
git fetch origin
git tag vA.B.C origin/main
git push origin tag vA.B.C
`