Findutf8cpp.cmake 559 B

12345678910111213141516171819
  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. include(FindPackageHandleStandardArgs)
  7. find_package_handle_standard_args(utf8cpp
  8. REQUIRED_VARS utf8cpp_INCLUDE_DIR)
  9. if (utf8cpp_FOUND)
  10. set(utf8cpp_INCLUDE_DIRS "${utf8cpp_INCLUDE_DIR}")
  11. if (NOT TARGET utf8cpp::utf8cpp)
  12. add_library(utf8cpp::utf8cpp INTERFACE IMPORTED)
  13. set_target_properties(utf8cpp::utf8cpp PROPERTIES
  14. INTERFACE_INCLUDE_DIRECTORIES "${utf8cpp_INCLUDE_DIR}")
  15. endif ()
  16. endif ()