![]() |
wisdom
|
This page documents how to consume Wisdom from CMake packages and source builds.
If Wisdom is installed (or provided via package manager), use:
The config package is installed under lib/cmake/wisdom. Add its prefix to CMAKE_PREFIX_PATH if CMake cannot locate it automatically.
Link one binary target with target_link_libraries:
| Target | Type | Description |
|---|---|---|
wis::wisdom | Static library | Core API |
wis::wisdom-shared | Shared library | Core API (DLL/.so) |
wis::wisdom-platform | Static library | Platform interop layer |
wis::wisdom-platform-shared | Shared library | Platform interop layer (DLL/.so) |
Header interface targets:
wis::wisdom-headerswis::wisdom-platform-headersCommon configuration options:
WISDOM_FORCE_VULKAN=ON/OFF force Vulkan type selection where supportedWISDOM_USE_FMT=ON/OFF use fmtlib instead of std::formatWISDOM_BUILD_STATIC=ON/OFF build static targetsWISDOM_BUILD_SHARED=ON/OFF build shared targetsWISDOM_BUILD_PLATFORM=ON/OFF build platform interop targetsWISDOM_BUILD_EXAMPLES=ON/OFF build examplesWISDOM_BUILD_TESTS=ON/OFF build testsWISDOM_BUILD_DOCS=ON/OFF build Doxygen documentationWISDOM_DXC_PATH=<path> custom DXC locationWISDOM_VULKAN_HEADER_PATH=<path> custom Vulkan-Headers locationThe nuget package is available at https://www.nuget.org/packages/Wisdom/. Its usage is a little different from the CMake usage. There is no need to link libraries manually, as the package will automatically link the library to your project. There is a property page that allows you to configure the library. Options are the same as CMake flags, but with a different naming convention.
The project now provides a Conan 2 recipe (conanfile.py) for source-based packaging.
The recipe maps to library-only CMake configuration and keeps existing build logic. At the moment dependencies are still resolved by project CMake using CPM and NuGet. This works for private Conan remotes, but Conan Center usually requires those dependencies to be available as Conan requirements or vendored in the recipe sources.
Conan support is currently focused on private/internal package flows. For Conan Center submission, dependency sourcing should be migrated from CPM/NuGet downloads to Conan packages (or vendored sources) to make builds reproducible in the center CI.
Examples provides usage examples for the library.