FindTIFF.cmake 759 B

12345678910111213141516171819202122
  1. # - Find TIFF library
  2. # Find the native TIFF includes and library
  3. # This module defines
  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.
  9. FIND_PATH(TIFF_INCLUDE_DIR tiff.h)
  10. SET(TIFF_NAMES ${TIFF_NAMES} tiff)
  11. FIND_LIBRARY(TIFF_LIBRARY NAMES ${TIFF_NAMES} )
  12. # handle the QUIETLY and REQUIRED arguments and set TIFF_FOUND to TRUE if
  13. # all listed variables are TRUE
  14. INCLUDE(FindPackageHandleStandardArgs)
  15. FIND_PACKAGE_HANDLE_STANDARD_ARGS(TIFF DEFAULT_MSG TIFF_LIBRARY TIFF_INCLUDE_DIR)
  16. IF(TIFF_FOUND)
  17. SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
  18. ENDIF(TIFF_FOUND)