Build & Test
anatomy is C++20 and builds with CMake ≥ 4.0 and Ninja, on GCC, Clang, and MSVC, using the same presets as the sibling repos.
Build and run the tests
Section titled “Build and run the tests”cmake --preset gcc-debug # also: gcc-release, clang-debug, clang-release, msvc, msvc-ninja, ...cmake --build --preset gcc-debugctest --preset gcc-debugThe tests are built only when anatomy is the top-level project (ANATOMY_BUILD_TESTS), so a mission repo that fetches anatomy gets just the libraries.
On Windows, a walkthrough in Visual Studio generates the solution with the msvc preset, and steps through the workbench in the debugger.
Using anatomy from a mission repo
Section titled “Using anatomy from a mission repo”A mission repo fetches anatomy pinned to a commit, and links its targets:
FetchContent_Declare( anatomy GIT_REPOSITORY https://github.com/branes-ai/anatomy.git GIT_TAG <commit> SYSTEM)FetchContent_MakeAvailable(anatomy)target_link_libraries(my_mission PRIVATE branes::anatomy)The docs site
Section titled “The docs site”This site is generated from docs/. To preview it:
cd docs-sitenpm cinpm run dev # regenerates the pages from docs/, then serves themNext: repository layout.