mirror-chatterino2/cmake/FindHumanize.cmake

14 lines
441 B
CMake
Raw Normal View History

2021-02-12 11:36:42 +01:00
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)