diff options
| author | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-11 14:19:39 -0400 |
|---|---|---|
| committer | Eugene Triguba <hello@eugenetriguba.com> | 2025-10-11 14:31:37 -0400 |
| commit | d3ec525b7d6ecd8de064d3f3a54d112769d1d3b3 (patch) | |
| tree | 935b51f95afb513604c82c9e1efca223af60c109 /CMakeLists.txt | |
| parent | Fix git clone link in readme (diff) | |
| download | cli-d3ec525b7d6ecd8de064d3f3a54d112769d1d3b3.zip | |
Add unicode support to justify
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index b03d8e2..ef829da 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -11,14 +11,20 @@ if (CMAKE_C_COMPILER_ID STREQUAL "Clang") add_compile_options(-Wall -Wextra -ansi) endif() +# Find ICU library using pkg-config +find_package(PkgConfig REQUIRED) +pkg_check_modules(ICU REQUIRED IMPORTED_TARGET icu-uc icu-i18n) + set(SRC_FILES src/linebuffer.c src/word.c + src/utf8.c src/main.c ) include_directories(src) add_executable(justify ${SRC_FILES}) +target_link_libraries(justify PkgConfig::ICU) install(TARGETS justify RUNTIME DESTINATION bin) install(FILES doc/justify.1 DESTINATION share/man/man1) |