# Installation

> The SDK's headers call into the compiled library, so build it first from a checkout.

3.0.0-rc.1 · cabb6603

The SDK’s headers call into the compiled library, so build it first from a checkout:

```sh
cmake -B build_release -D CMAKE_BUILD_TYPE=Release -D USEARCH_BUILD_LIBRARIES=1 && cmake --build build_release
```

That build compiles the four most common dense storage types, `bf16`, `u1x8`, `i8` and `e4m3`, and an index over any other is refused with `status_code_t::unsupported_k`. `-D USEARCH_DENSE_DTYPES` lists the dense types to compile, and `-D USEARCH_SHAPES_METRICS`, `-D USEARCH_SEQUENCE_METRICS` and `-D USEARCH_GEOSPATIAL_RELATIONS` list the members of the modalities the default leaves out, while `-D USEARCH_SHAPES_DTYPES` narrows the shapes storage widths from `f16` and `f32`. The C ABI’s `usearch_*_compiled` queries report each list the linked library holds as a mask. `cmake --install build_release --component sdk` places `usearch/*.hpp` beside the C headers and both libraries, and `find_package(usearch)` or a `FetchContent` or `add_subdirectory` of this repository names the SDK `usearch::cpp`. `usearch::cpp` carries the `cpp/` include path, the C headers of `usearch::abi` and the archive `usearch::static`, and nothing of the engine’s headers. Every SDK header refuses `USEARCH_HEADER_ONLY`, so a unit linking `usearch::header` instead fails to compile.

`-D USEARCH_BUILD_STUB=1` builds `usearch::static_stub`, a brute-force stand-in that answers the same verbs over the standard library alone, with exact search, seconds to build and no submodules, for testing a caller and never for shipping. `cpp/test.cpp` runs against both, as `usearch_test_cpp` and `usearch_test_cpp_stub`.
