FindFreetype¶
Finds the FreeType font renderer library.
Imported Targets¶
This module provides the following Imported Targets:
Freetype::Freetype
在 3.10 版被加入.
Target encapsulating the Freetype library usage requirements, available if Freetype is found.
結果變數¶
This module defines the following variables:
Freetype_FOUND
Boolean 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_DIRS
Include directories containing headers needed to use Freetype. This is the concatenation of
FREETYPE_INCLUDE_DIR_ft2build
andFREETYPE_INCLUDE_DIR_freetype2
variables.FREETYPE_LIBRARIES
Libraries needed to link against for using Freetype.
FREETYPE_VERSION_STRING
The version of Freetype found.
在 3.7 版被加入: Debug and Release library variants are found separately.
快取變數¶
The following cache variables may also be set:
FREETYPE_INCLUDE_DIR_ft2build
The directory containing the main Freetype API configuration header.
FREETYPE_INCLUDE_DIR_freetype2
The directory containing Freetype public headers.
Hints¶
This module accepts the following variables:
FREETYPE_DIR
The 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)