Introduce "generator expressions" to add_test()
[cmake.git] / Modules / FindTIFF.cmake
blob2868bb9f34828231a6d61d759b15e113d188faa3
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.
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)
20 IF(TIFF_FOUND)
21   SET( TIFF_LIBRARIES ${TIFF_LIBRARY} )
22 ENDIF(TIFF_FOUND)
24 MARK_AS_ADVANCED(TIFF_INCLUDE_DIR TIFF_LIBRARY)