A development environment including dependencies can be created using Devcontainer of VSCode.
To build this repository, you will require following dependencies:
- Python 3.13
- You may want to use pyenv.
- poetry
- Required Python packages can be installed using poetry.
Execute the command
poetry installon this directory. - pre-commit
will be installed via poetry, and used for some checks.
Execute
poetry run pre-commit installon this directory if you develop this library.
- Required Python packages can be installed using poetry.
Execute the command
- CMake
- C++ 23 Compiler
- Following compilers are tested in CI:
- GCC 12
- GCC 13
- Clang 19
- Clang 20
- Clang 21
- Visual Studio 2022
- Following compilers are tested in CI:
Additionally, you will require following dependencies to build documentation.
- Doxygen
- Graphviz
- PlantUML
- Set
PLANTUML_JAR_PATHenvironment variable to specify the place ofplantuml.jarfile.
- Set
- Java runtime environment (JRE) for PlantUML.
After installation of dependencies, execute the following commands to build:
-
Start a shell of poetry.
cd <this-directory> poetry install poetry shell
-
Download vcpkg if you haven't already.
git submodule update --init
-
Build vcpkg.
-
On Windows:
.\vcpkg\bootstrap-vcpkg.bat
-
On Linux:
./vcpkg/bootstrap-vcpkg.sh
-
-
Configure.
mkdir build cd build cmake .. -DCMAKE_TOOLCHAIN_FILE=../vcpkg/scripts/buildsystems/vcpkg.cmake -
Optionally edit options.
<some-editor> CMakeCache.txt
-
Build.
cmake --build . -
Optionally run tests.
ctest