# Installation

> Fetch the repository at configure time and link the SDK target.

4.0.0-rc.1 · f2ef38ea

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

```cmake
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`.
