2 # Find the native TIFF includes and library
4 # TIFF_INCLUDE_DIR, where to find tiff.h, etc.
5 # TIFF_LIBRARIES, libraries to link against to use TIFF.
6 # TIFF_FOUND, If false, do not try to use TIFF.
7 # also defined, but not for general use are
8 # TIFF_LIBRARY, where to find the TIFF library.
10 FIND_PATH(TIFF_INCLUDE_DIR tiff.h)
12 SET(TIFF_NAMES ${TIFF_NAMES} tiff libtiff libtiff3)
13 FIND_LIBRARY(TIFF_LIBRARY NAMES ${TIFF_NAMES} )
15 # handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
16 # all listed variables are TRUE
17 INCLUDE(FindPackageHandleStandardArgs)
18 FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
21 SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
24 MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARY)