From: Kevin Albertson Date: Fri, 7 Jun 2024 16:57:37 +0000 (-0400) Subject: relocate `Using with CMake` X-Git-Tag: archive/raspbian/2.11.3-2+rpi1^2~10^2^2~29^2~8 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=e3d29ea2ed251fee63bae20a78b23536fc27d90d;p=utf8proc.git relocate `Using with CMake` --- diff --git a/README.md b/README.md index 79a6aa2..1413871 100644 --- a/README.md +++ b/README.md @@ -42,16 +42,6 @@ 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`. @@ -63,6 +53,16 @@ gmake CC=/opt/aCC/bin/aCC CFLAGS="+O2" PICFLAG="+z" C99FLAG="-Ae" WCFLAGS="+w" L ``` To run `gmake install` you will need GNU coreutils for the `install` command, and you may want to pass `prefix=/opt libdir=/opt/lib/hpux32` or similar to change the installation location. +### 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) +``` + ## General Information The C library is found in this directory after successful compilation