FindXalanC — CMake 4.4.20260621-gcc70e9e-dirty Documentation

# FindXalanC

Added in version 3.5.

Finds the Apache Xalan-C++ XSL transform processor headers and libraries:

    find_package(XalaxC [<version>] [...])

Note

The Xalan-C++ library depends on the `Xerces-C++` library, which must be found for this module to succeed.

## Imported Targets

This module provides the following Imported Targets:

`XalanC::XalanC`

  Target encapsulating the Xalan-C++ library usage requirements, available only if Xalan-C++ is found.

## Result Variables

This module defines the following variables:

`XalanC_FOUND`

  Boolean indicating whether (the requested version of) Xalan-C++ was found.

`XalanC_VERSION`

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

`XalanC_INCLUDE_DIRS`

  Include directories needed for using Xalan-C++ library. These contain the Xalan-C++ and Xerces-C++ headers.

`XalanC_LIBRARIES`

  Libraries needed to link against Xalan-C++. These contain the Xalan-C++ and Xerces-C++ libraries.

`XalanC_LIBRARY`

  The path to the Xalan-C++ library (`xalan-c`), either release or debug variant.

## Cache Variables

The following cache variables may also be set:

`XalanC_INCLUDE_DIR`

  The directory containing the Xalan-C++ headers.

`XalanC_LIBRARY_RELEASE`

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

`XalanC_LIBRARY_DEBUG`

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

## Examples

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

    find_package(XalanC)
    target_link_libraries(project_target PRIVATE XalanC::XalanC)