Finds the FreeType font renderer library.
This module provides the following Imported Targets:
Freetype::FreetypeAdded in version 3.10.
Target encapsulating the Freetype library usage requirements, available if Freetype is found.
This module defines the following variables:
Freetype_FOUNDBoolean indicating whether the (requested version of) Freetype is found. For
backward compatibility, the FREETYPE_FOUND variable is also set to the
same value.
FREETYPE_INCLUDE_DIRSInclude directories containing headers needed to use Freetype. This is the
concatenation of FREETYPE_INCLUDE_DIR_ft2build and
FREETYPE_INCLUDE_DIR_freetype2 variables.
FREETYPE_LIBRARIESLibraries needed to link against for using Freetype.
FREETYPE_VERSION_STRINGThe version of Freetype found.
Added in version 3.7: Debug and Release library variants are found separately.
The following cache variables may also be set:
FREETYPE_INCLUDE_DIR_ft2buildThe directory containing the main Freetype API configuration header.
FREETYPE_INCLUDE_DIR_freetype2The directory containing Freetype public headers.
This module accepts the following variables:
FREETYPE_DIRThe user may set this environment variable to the root directory of a Freetype installation to find Freetype in non-standard locations.
Finding Freetype and linking it to a project target:
find_package(Freetype)
target_link_libraries(project_target PRIVATE Freetype::Freetype)