diff options
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) |