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

ANIM_BUILD_STATIC

ON

Build the static library.

ANIM_BUILD_SHARED

OFF

Build the shared library.

ANIM_BUILD_TESTS

ON standalone / OFF submodule

Build the test suite.

ANIM_BUILD_EXAMPLES

ON standalone / OFF submodule

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.