1 #[=======================================================================[.rst:
5 Finds the harfbuzz library.
10 This will define the following variables:
13 True if the system has the harfbuzz library.
14 ``Harfbuzz_INCLUDE_DIRS``
15 Include directories needed to use harfbuzz.
16 ``Harfbuzz_LIBRARIES``
17 Libraries needed to link to harfbuzz.
19 The version of the harfbuzz library which was found.
24 The following cache variables may also be set:
26 ``Harfbuzz_INCLUDE_DIR``
27 The directory containing ``hb.h``.
29 The path to the harfbuzz library.
31 #]=======================================================================]
33 find_package(PkgConfig QUIET)
34 pkg_check_modules(PC_Harfbuzz QUIET harfbuzz)
36 find_path(Harfbuzz_INCLUDE_DIR
38 PATHS ${PC_Harfbuzz_INCLUDE_DIRS}
41 find_library(Harfbuzz_LIBRARY
43 PATHS ${PC_Harfbuzz_LIBRARY_DIRS}
46 set(Harfbuzz_VERSION ${PC_Harfbuzz_VERSION})
48 include(FindPackageHandleStandardArgs)
49 find_package_handle_standard_args(Harfbuzz
50 FOUND_VAR Harfbuzz_FOUND
54 VERSION_VAR Harfbuzz_VERSION
58 set(Harfbuzz_LIBRARIES ${Harfbuzz_LIBRARY})
59 set(Harfbuzz_INCLUDE_DIRS ${Harfbuzz_INCLUDE_DIR})