mirror-chatterino2/cmake/FindHumanize.cmake
2021-03-07 11:08:13 +01:00

14 lines
441 B
CMake

include(FindPackageHandleStandardArgs)
find_path(Humanize_INCLUDE_DIR humanize/format_string.hpp)
find_package_handle_standard_args(Humanize REQUIRED_VARS Humanize_INCLUDE_DIR)
if (Humanize_FOUND)
add_library(Humanize::Humanize INTERFACE IMPORTED)
set_target_properties(Humanize::Humanize PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${Humanize_INCLUDE_DIR}"
)
endif ()
mark_as_advanced(Humanize_INCLUDE_DIR)