2011-03-21 22:51:04 +01:00
|
|
|
# - Find LCMS library
|
|
|
|
# Find the native LCMS includes and library
|
2011-07-13 18:49:53 +02:00
|
|
|
# Once done this will define
|
|
|
|
#
|
|
|
|
# LCMS_INCLUDE_DIR - Where to find lcms.h, etc.
|
|
|
|
# LCMS_LIBRARIES - Libraries to link against to use LCMS.
|
|
|
|
# LCMS_FOUND - If false, do not try to use LCMS.
|
|
|
|
#
|
2011-03-21 22:51:04 +01:00
|
|
|
# also defined, but not for general use are
|
|
|
|
# LCMS_LIBRARY, where to find the LCMS library.
|
2011-07-13 18:49:53 +02:00
|
|
|
|
|
|
|
#=============================================================================
|
|
|
|
#=============================================================================
|
|
|
|
|
2011-03-21 22:51:04 +01:00
|
|
|
FIND_PATH(LCMS_INCLUDE_DIR lcms.h PATHS /usr/include /usr/local/include /opt/include /opt/local/include)
|
2011-07-13 18:49:53 +02:00
|
|
|
|
2011-03-21 22:51:04 +01:00
|
|
|
SET(LCMS_NAMES ${LCMS_NAMES} lcms liblcms liblcms_static)
|
2011-07-13 18:49:53 +02:00
|
|
|
|
2011-03-21 22:51:04 +01:00
|
|
|
FIND_LIBRARY(LCMS_LIBRARY NAMES ${LCMS_NAMES} )
|
2011-07-13 18:49:53 +02:00
|
|
|
|
|
|
|
MARK_AS_ADVANCED(LCMS_INCLUDE_DIR LCMS_LIBRARY)
|
|
|
|
|
2011-03-21 22:51:04 +01:00
|
|
|
# handle the QUIETLY and REQUIRED arguments and set LCMS_FOUND to TRUE if
|
|
|
|
# all listed variables are TRUE
|
|
|
|
INCLUDE(FindPackageHandleStandardArgs)
|
|
|
|
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LCMS DEFAULT_MSG LCMS_LIBRARY LCMS_INCLUDE_DIR)
|
2011-07-13 18:49:53 +02:00
|
|
|
|
2011-03-21 22:51:04 +01:00
|
|
|
IF(LCMS_FOUND)
|
2011-07-13 18:49:53 +02:00
|
|
|
SET( LCMS_INCLUDE_DIRS ${LCMS_INCLUDE_DIR})
|
2011-03-21 22:51:04 +01:00
|
|
|
SET( LCMS_LIBRARIES ${LCMS_LIBRARY} )
|
|
|
|
ENDIF(LCMS_FOUND)
|