Added in version 3.14.
Finds Fontconfig, a library for font configuration and customization.
This module provides the following Imported Targets:
Fontconfig::FontconfigTarget encapsulating the Fontconfig usage requirements, available if Fontconfig is found.
This module defines the following variables:
Fontconfig_FOUNDBoolean indicating whether the (requested version of) Fontconfig is 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 the
Fontconfig::Fontconfig imported target.
Finding Fontconfig and linking it to a project target:
find_package(Fontconfig)
target_link_libraries(project_target PRIVATE Fontconfig::Fontconfig)