C++ · Installation

Installation

4.0.0-rc.1 · f2ef38ea

Ask your coding agent about this page, or add the docs server to it

curl -s 'https://www.unum.cloud/docs/forkunion/cpp/installation.md' | claude -p "How would this fit my code?"

Fetch the repository at configure time and link the SDK target:

FetchContent_Declare(
    forkunion
    GIT_REPOSITORY https://github.com/ashvardanian/ForkUnion
    GIT_TAG v4.0.0-rc.1
)
FetchContent_MakeAvailable(forkunion)
target_link_libraries(your_target PRIVATE forkunion::cpp)

forkunion::cpp adds cpp/ as an include root beside the C header of forkunion::abi, requires C++23, and links the archive forkunion::static. cpp/test.cpp runs the SDK against that archive, as forkunion_test_cpp.