From: Kevin Albertson Date: Mon, 15 Jan 2024 15:03:18 +0000 (-0500) Subject: add `Using with CMake` instructions X-Git-Tag: archive/raspbian/2.11.3-2+rpi1^2~10^2^2~29^2~12 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=c3d388b2dd72b690dcc926c8847b46d8c697e5b6;p=utf8proc.git add `Using with CMake` instructions --- diff --git a/README.md b/README.md index 2923e8c..14b3330 100644 --- a/README.md +++ b/README.md @@ -42,6 +42,16 @@ cmake -S . -B build cmake --build build ``` +## Using with CMake + +A CMake Config-file package is provided. To use utf8proc in a CMake project: + +```cmake +add_executable (app app.c) +find_package (utf8proc 2.9.0 REQUIRED) +target_link_libraries (app PRIVATE utf8proc::utf8proc) +``` + ### Using other compilers The included `Makefile` supports GNU/Linux flavors and MacOS with `gcc`-like compilers; Windows users will typically use `cmake`.