6643N/A# Once done this will define
6643N/A# LCMS_FOUND - system has LCMS
6643N/A# LCMS_INCLUDE_DIRS - the LCMS include directory
6643N/A# LCMS_LIBRARIES - Link these to use LCMS
6643N/A# LCMS_DEFINITIONS - Compiler switches required for using LCMS
6643N/A# Copyright (c) 2008 Joshua L. Blocher <verbalshadow@gmail.com>
6643N/A# Redistribution and use is allowed according to the terms of the New
6643N/A# For details see the accompanying COPYING-CMAKE-SCRIPTS file.
6643N/Aif (LCMS_LIBRARIES AND LCMS_INCLUDE_DIRS)
6643N/Aelse (LCMS_LIBRARIES AND LCMS_INCLUDE_DIRS)
6643N/A # use pkg-config to get the directories and then use these values
6643N/A # in the FIND_PATH() and FIND_LIBRARY() calls
6643N/A if (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
7077N/A pkgconfig(lcms _LCMS_INCLUDEDIR _LCMS_LIBDIR _LCMS_LDFLAGS _LCMS_CFLAGS)
6643N/A else (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
6643N/A pkg_check_modules(_LCMS lcms)
6643N/A endif (${CMAKE_MAJOR_VERSION} EQUAL 2 AND ${CMAKE_MINOR_VERSION} EQUAL 4)
7183N/A if (LCMS_INCLUDE_DIRS AND LCMS_LIBRARIES)
7183N/A endif (LCMS_INCLUDE_DIRS AND LCMS_LIBRARIES)
6643N/A message(STATUS "Found LCMS: ${LCMS_LIBRARIES}")
6643N/A endif (NOT LCMS_FIND_QUIETLY)
6643N/A message(FATAL_ERROR "Could not find LCMS")
6643N/A # show the LCMS_INCLUDE_DIRS and LCMS_LIBRARIES variables only in the advanced view
6643N/A mark_as_advanced(LCMS_INCLUDE_DIRS LCMS_LIBRARIES)
6643N/Aendif (LCMS_LIBRARIES AND LCMS_INCLUDE_DIRS)