convert.c: ENDIAN condition removed, tiftoimage and imagetotif updated (ALPHA added...
[openjpeg.git] / thirdparty / FindLCMS.cmake
1 # - Find LCMS library
2 # Find the native LCMS includes and library
3 # This module defines
4 #  LCMS_INCLUDE_DIR, where to find tiff.h, etc.
5 #  LCMS_LIBRARIES, libraries to link against to use LCMS.
6 #  LCMS_FOUND, If false, do not try to use LCMS.
7 # also defined, but not for general use are
8 #  LCMS_LIBRARY, where to find the LCMS library.
9 #
10 FIND_PATH(LCMS_INCLUDE_DIR lcms.h  PATHS /usr/include /usr/local/include /opt/include /opt/local/include)
11 #
12 SET(LCMS_NAMES ${LCMS_NAMES} lcms liblcms liblcms_static)
13 FIND_LIBRARY(LCMS_LIBRARY NAMES ${LCMS_NAMES} )
14 #
15 # handle the QUIETLY and REQUIRED arguments and set LCMS_FOUND to TRUE if
16 # all listed variables are TRUE
17 INCLUDE(FindPackageHandleStandardArgs)
18 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LCMS  DEFAULT_MSG  LCMS_LIBRARY  LCMS_INCLUDE_DIR)
19 #
20 IF(LCMS_FOUND)
21   SET( LCMS_LIBRARIES ${LCMS_LIBRARY} )
22 ENDIF(LCMS_FOUND)
23
24 MARK_AS_ADVANCED(LCMS_INCLUDE_DIR LCMS_LIBRARY)