FindXercesC

在 3.1 版被加入.

Finds the Apache Xerces-C++ validating XML parser headers and libraries.

Imported Targets

This module defines the following Imported Targets:

XercesC::XercesC

在 3.5 版被加入.

Target encapsulating the Xerces-C++ library (xerces-c) usage requirements, available only if Xerces-C++ is found.

結果變數

This module defines the following variables:

XercesC_FOUND

Boolean indicating whether the Xerces-C++ is found.

XercesC_VERSION

The version of the found Xerces-C++ library.

XercesC_INCLUDE_DIRS

Include directories needed to use Xerces-C++.

XercesC_LIBRARIES

Libraries needed to link for using Xerces-C++.

XercesC_LIBRARY

The path to the Xerces-C++ library (xerces-c), either release or debug variant.

快取變數

The following cache variables may also be set:

XercesC_INCLUDE_DIR

The directory containing the Xerces-C++ headers.

XercesC_LIBRARY_RELEASE

在 3.4 版被加入.

The path to a release (optimized) variant of the Xerces-C++ library.

XercesC_LIBRARY_DEBUG

在 3.4 版被加入.

The path to a debug variant of the Xerces-C++ library.

範例

Finding the Xerces-C++ library and linking it to a project target:

find_package(XercesC)
target_link_libraries(project_target PRIVATE XercesC::XercesC)