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_RELEASE ${TIFF_NAMES_RELEASE} tiff libtiff libtiff3)
13 FIND_LIBRARY(TIFF_LIBRARY_RELEASE NAMES ${TIFF_NAMES_RELEASE} )
15 SET(TIFF_NAMES_DEBUG ${TIFF_NAMES_DEBUG} tiffd libtiffd libtiff3d)
16 FIND_LIBRARY(TIFF_LIBRARY_DEBUG NAMES ${TIFF_NAMES_DEBUG} )
18 SET(ZLIB_LIBRARIES_FOUND )
20 IF(TIFF_LIBRARY_DEBUG)
21 SET(TIFF_LIBRARIES_FOUND TRUE)
22 MARK_AS_ADVANCED(TIFF_LIBRARY_DEBUG)
23 ENDIF(TIFF_LIBRARY_DEBUG)
25 IF(TIFF_LIBRARY_RELEASE)
26 SET(TIFF_LIBRARIES_FOUND TRUE)
27 MARK_AS_ADVANCED(TIFF_LIBRARY_RELEASE)
28 ENDIF(TIFF_LIBRARY_RELEASE)
30 # handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
31 # all listed variables are TRUE
32 INCLUDE(FindPackageHandleStandardArgs)
33 FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG
34 TIFF_LIBRARIES_FOUND TIFF_INCLUDE_DIR)
37 # SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
40 MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARIES_FOUND)