Finds the native Expat headers and library:
find_package(EXPAT [<version>] [...])
Expat is a stream-oriented XML parser library written in C.
This module provides the following Imported Targets:
EXPAT::EXPATAdded in version 3.10.
Target encapsulating the Expat library (expat) usage requirements. This
target is available only if Expat is found.
This module defines the following variables:
EXPAT_FOUNDBoolean indicating whether (the requested version of) Expat was found.
EXPAT_VERSIONAdded in version 4.2.
The version of Expat found.
EXPAT_INCLUDE_DIRSInclude directories containing expat.h and related headers needed to use
Expat.
EXPAT_LIBRARIESLibraries needed to link against to use Expat.
This module accepts the following variables:
EXPAT_USE_STATIC_LIBSAdded in version 3.28.
Set to TRUE to use static libraries.
Added in version 3.31: Implemented on non-Windows platforms.
The following variables are provided for backward compatibility:
EXPAT_VERSION_STRINGDeprecated since version 4.2: Superseded by the EXPAT_VERSION.
The version of Expat found.
Finding Expat library and linking it to a project target:
find_package(EXPAT)
target_link_libraries(project_target PRIVATE EXPAT::EXPAT)