robin/laufey

git clone https://git.robinwobin.dev/robin/laufey

dundargocbuild: add utf8proc as dependency32e16cb0b6

master
619 B12 linesraw
1find_path2(UTF8PROC_INCLUDE_DIR utf8proc.h)
2find_library2(UTF8PROC_LIBRARY NAMES utf8proc utf8proc_static)
3find_package_handle_standard_args(UTF8proc DEFAULT_MSG
4  UTF8PROC_LIBRARY UTF8PROC_INCLUDE_DIR)
5mark_as_advanced(UTF8PROC_LIBRARY UTF8PROC_INCLUDE_DIR)
6
7add_library(utf8proc INTERFACE)
8target_include_directories(utf8proc SYSTEM BEFORE INTERFACE ${UTF8PROC_INCLUDE_DIR})
9target_link_libraries(utf8proc INTERFACE ${UTF8PROC_LIBRARY})
10
11#TODO(dundargoc): this is a hack that should ideally be hardcoded into the utf8proc project via configure_command
12target_compile_definitions(utf8proc INTERFACE "UTF8PROC_STATIC")