# FindTIFF

Find the TIFF library (`libtiff`, https://libtiff.gitlab.io/libtiff/).

## Optional COMPONENTS

This module supports the optional component CXX, for use with the COMPONENTS argument of the `find_package()` command. This component has an associated imported target, as described below.

## Imported targets

New in version 3.5.

This module defines the following `IMPORTED` targets:

`TIFF::TIFF`

  The TIFF library, if found.

`TIFF::CXX`

  New in version 3.19.

  The C++ wrapper libtiffxx, if requested by the COMPONENTS CXX option, if the compiler is not MSVC (which includes the C++ wrapper in libtiff), and if found.

## Result variables

This module will set the following variables in your project:

`TIFF_FOUND`

  true if the TIFF headers and libraries were found

`TIFF_INCLUDE_DIR`

  the directory containing the TIFF headers

`TIFF_INCLUDE_DIRS`

  the directory containing the TIFF headers

`TIFF_LIBRARIES`

  TIFF libraries to be linked

## Cache variables

The following cache variables may also be set:

`TIFF_INCLUDE_DIR`

  the directory containing the TIFF headers

`TIFF_LIBRARY_RELEASE`

  the path to the TIFF library for release configurations

`TIFF_LIBRARY_DEBUG`

  the path to the TIFF library for debug configurations

`TIFFXX_LIBRARY_RELEASE`

  the path to the TIFFXX library for release configurations

`TIFFXX_LIBRARY_DEBUG`

  the path to the TIFFXX library for debug configurations

New in version 3.4: Debug and Release variants are found separately.