FindFontconfig¶
Added in version 3.14.
Finds Fontconfig, a library for font configuration and customization.
Imported Targets¶
This module provides the following Imported Targets:
Fontconfig::Fontconfig
Target encapsulating the Fontconfig usage requirements, available if Fontconfig is found.
Result Variables¶
This module defines the following variables:
Fontconfig_FOUND
Boolean indicating whether the (requested version of) Fontconfig is found.
Fontconfig_VERSION
The version of Fontconfig found.
Fontconfig_LIBRARIES
The libraries to link against to use Fontconfig.
Fontconfig_INCLUDE_DIRS
The include directories containing headers needed to use Fontconfig.
Fontconfig_COMPILE_OPTIONS
Compiler options needed to use Fontconfig. These should be passed to
target_compile_options()
when not using theFontconfig::Fontconfig
imported target.
Examples¶
Finding Fontconfig and linking it to a project target:
find_package(Fontconfig)
target_link_libraries(project_target PRIVATE Fontconfig::Fontconfig)