FindFontconfig¶
Added in version 3.14.
Finds Fontconfig, a library for font configuration and customization:
find_package(Fontconfig [<version>] [...])
Imported Targets¶
This module provides the following Imported Targets:
Fontconfig::FontconfigTarget encapsulating the Fontconfig usage requirements, available if Fontconfig is found.
Result Variables¶
This module defines the following variables:
Fontconfig_FOUNDBoolean indicating whether (the requested version of) Fontconfig was found.
Fontconfig_VERSIONThe version of Fontconfig found.
Fontconfig_LIBRARIESThe libraries to link against to use Fontconfig.
Fontconfig_INCLUDE_DIRSThe include directories containing headers needed to use Fontconfig.
Fontconfig_COMPILE_OPTIONSCompiler options needed to use Fontconfig. These should be passed to
target_compile_options()when not using theFontconfig::Fontconfigimported target.
Examples¶
Finding Fontconfig and linking it to a project target:
find_package(Fontconfig)
target_link_libraries(project_target PRIVATE Fontconfig::Fontconfig)