robin/laufey
git clone https://git.robinwobin.dev/robin/laufey
32e16cb0b6
master
1find_path2 ( UTF8PROC_INCLUDE_DIR utf8proc.h ) 2find_library2 ( UTF8PROC_LIBRARY NAMES utf8proc utf8proc_static ) 3find_package_handle_standard_args ( UTF8proc DEFAULT_MSG 4UTF8PROC_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" )