Installation
Requirements
A C++20-compatible compiler (MSVC 2022, GCC 11+, Clang 14+)
CMake 3.25 or newer
Building from source
Helper scripts configure, build, and run the tests:
./build.sh # Linux / macOS
.\build.ps1 # Windows (PowerShell)
Or drive CMake directly:
cmake -B build -S . -DANIM_BUILD_TESTS=ON
cmake --build build
ctest --test-dir build
Using anim in your project
As a CMake subdirectory:
add_subdirectory(path/to/anim)
target_link_libraries(your_target PRIVATE anim)
Via an installed package:
find_package(anim REQUIRED)
target_link_libraries(your_target PRIVATE anim::anim_static) # or anim::anim_shared
CMake options
Option |
Default |
Description |
|---|---|---|
|
|
Build the static library. |
|
|
Build the shared library. |
|
|
Build the test suite. |
|
|
Build the examples. |
When anim is added with add_subdirectory, tests and examples default
to OFF so they do not build as part of your project.