Findutf8cpp.cmake
Go to the documentation of this file.
1 find_path(utf8cpp_INCLUDE_DIR
2  NAMES utf8.h
3  PATH_SUFFIXES utf8cpp
4  DOC "utf8cpp include directory")
5 mark_as_advanced(utf8cpp_INCLUDE_DIR)
6 
7 include(FindPackageHandleStandardArgs)
8 find_package_handle_standard_args(utf8cpp
9  REQUIRED_VARS utf8cpp_INCLUDE_DIR)
10 
11 if (utf8cpp_FOUND)
12  set(utf8cpp_INCLUDE_DIRS "${utf8cpp_INCLUDE_DIR}")
13 
14  if (NOT TARGET utf8cpp::utf8cpp)
15  add_library(utf8cpp::utf8cpp INTERFACE IMPORTED)
16  set_target_properties(utf8cpp::utf8cpp PROPERTIES
17  INTERFACE_INCLUDE_DIRECTORIES "${utf8cpp_INCLUDE_DIR}")
18  endif ()
19 endif ()