This section contains a description of how to build the library. It requires some external dependencies, which are listed below.
Configuring which dependencies to include can be done via the options in the top-level CMakeLists.txt file. The default configuration only includes dependencies marked as required.
To use the btf-toolchain in Python you need a version of Python3 and the modules pybind11, pybind11-stubgen and wheel.
After installing the prerequisites, the ENABLE_PYTHON_BINDINGS option can be set to YES and the Python bindings can be built.
The build command is described in the Build Commands subsection.
After running the build command, a wheel file (.whl) is created and placed in build/dist. To use the pybtf module, it must be installed. This can be done, for example, by going to the build/dist folder and running:
The documentation is built using doxygen. To build the documentation with cmake, install doxygen, dot and graphviz and set the ENABLE_DOXYGEN option to YES.
The doxygen settings can be found in the cmake/Doxygen.cmake file.
After enabling doxygen cmake triggers doxygen to generate the documentation as html and put it into doc/doxygen_html.
The btf-toolchain also contains a testing setup. It requires catch2 to work and can be enabled with the ENABLE_TESTING option.
For more information see the Testing subsections in D:/Gitlab-Projekte/Neuer Ordner/btf-toolchain/doc/md/usage.md "How to use the library".
The btf-toolchain is compatible with Windows and Linux. After fulfilling the required dependencies, the building process can be performed with the following commands.
Please note that the last command is for the Python extension. It will only work if the required dependencies for the Python binding are installed and the ENABLE_PYTHON_BINDINGS option is enabled.