Skip to content

Commit e3d29ea

Browse files
committed
relocate Using with CMake
1 parent afaa23c commit e3d29ea

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

README.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,6 @@ cmake -S . -B build
4242
cmake --build build
4343
```
4444

45-
### Using with CMake
46-
47-
A CMake Config-file package is provided. To use utf8proc in a CMake project:
48-
49-
```cmake
50-
add_executable (app app.c)
51-
find_package (utf8proc 2.9.0 REQUIRED)
52-
target_link_libraries (app PRIVATE utf8proc::utf8proc)
53-
```
54-
5545
### Using other compilers
5646
The included `Makefile` supports GNU/Linux flavors and MacOS with `gcc`-like compilers; Windows users will typically use `cmake`.
5747

@@ -63,6 +53,16 @@ gmake CC=/opt/aCC/bin/aCC CFLAGS="+O2" PICFLAG="+z" C99FLAG="-Ae" WCFLAGS="+w" L
6353
```
6454
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.
6555

56+
### Using with CMake
57+
58+
A CMake Config-file package is provided. To use utf8proc in a CMake project:
59+
60+
```cmake
61+
add_executable (app app.c)
62+
find_package (utf8proc 2.9.0 REQUIRED)
63+
target_link_libraries (app PRIVATE utf8proc::utf8proc)
64+
```
65+
6666
## General Information
6767

6868
The C library is found in this directory after successful compilation

0 commit comments

Comments
 (0)