For a list of dependencies, please refer to vcpkg.json.
Make sure you have at least CMake 3.15 installed
building in release mode with a single-configuration generator, like the Unix Makefiles one:
cmake -S . -B build -D CMAKE_BUILD_TYPE=Release
cmake --build build
Install the release mode artifacts
cmake --install build
Building in release mode with a multi-configuration generator, like the Visual Studio ones:
cmake -S . -B build
cmake --build build --config Release
Install the release mode artifacts
cmake --install build --config Release
CMake supports building on Apple Silicon properly since 3.20.1. Make sure you have the latest version installed and follow the Unix build and installation instruction.
Note that MSVC by default is not standards compliant and you need to pass some
flags to make it behave properly. See the flags-windows
preset in the
CMakePresets.json file for the flags and with what
variable to provide them to CMake during configuration.
This project exports a CMake package to be used with the find_package
command of CMake:
- Package name:
stronk
- Target name:
twig::stronk
Example usage:
find_package(stronk REQUIRED)
# Declare the imported target as a build requirement using PRIVATE, where
# project_target is a target created in the consuming project
target_link_libraries(
project_target PRIVATE
twig::stronk
)