C++ Templates · Installation

Installation

bd07c64c

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

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

§ Getting Them

CMake names the headers uform::header, which links uform::abi, and an install copies them beside the C headers, so find_package(uform) names it too. The headers include NumKong, ForkUnion, StringZilla and SmashTable, which uform::header leaves to the consumer. A program vendoring UForm through FetchContent gets those siblings at the commits UForm pins, and links their targets beside it:

FetchContent_Declare(uform GIT_REPOSITORY https://github.com/unum-cloud/UForm.git GIT_SHALLOW TRUE)
FetchContent_MakeAvailable(uform)
target_link_libraries(your_target PRIVATE uform::header numkong::types forkunion::header stringzilla::types
                                          smashtable::header)

A program using the installed package finds each sibling’s own package instead.