2 # Find the native LCMS includes and library
3 # Once done this will define
5 # LCMS_INCLUDE_DIR - Where to find lcms.h, etc.
6 # LCMS_LIBRARIES - Libraries to link against to use LCMS.
7 # LCMS_FOUND - If false, do not try to use LCMS.
9 # also defined, but not for general use are
10 # LCMS_LIBRARY, where to find the LCMS library.
12 #=============================================================================
13 #=============================================================================
15 FIND_PATH(LCMS_INCLUDE_DIR lcms.h PATHS /usr/include /usr/local/include /opt/include /opt/local/include)
17 SET(LCMS_NAMES ${LCMS_NAMES} lcms liblcms liblcms_static)
19 FIND_LIBRARY(LCMS_LIBRARY NAMES ${LCMS_NAMES} )
21 MARK_AS_ADVANCED(LCMS_INCLUDE_DIR LCMS_LIBRARY)
23 # handle the QUIETLY and REQUIRED arguments and set LCMS_FOUND to TRUE if
24 # all listed variables are TRUE
25 INCLUDE(FindPackageHandleStandardArgs)
26 FIND_PACKAGE_HANDLE_STANDARD_ARGS(LCMS DEFAULT_MSG LCMS_LIBRARY LCMS_INCLUDE_DIR)
29 SET( LCMS_INCLUDE_DIRS ${LCMS_INCLUDE_DIR})
30 SET( LCMS_LIBRARIES ${LCMS_LIBRARY} )