2 # Find the native LCMS includes and library
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.
10 FIND_PATH(LCMS_INCLUDE_DIR lcms.h PATHS /usr/include /usr/local/include /opt/include /opt/local/include)
12 SET(LCMS_NAMES ${LCMS_NAMES} lcms liblcms liblcms_static)
13 FIND_LIBRARY(LCMS_LIBRARY NAMES ${LCMS_NAMES} )
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)
21 SET( LCMS_LIBRARIES ${LCMS_LIBRARY} )
24 MARK_AS_ADVANCED(LCMS_INCLUDE_DIR LCMS_LIBRARY)