diff options
| author | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 | 
|---|---|---|
| committer | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 | 
| commit | d2b2c90a06bf1f4a21df196430d1f95856900410 (patch) | |
| tree | aba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /modules/FindLCMS.cmake | |
| parent | e15ffacc69242c89107afbfda6f8ece9f2b56633 (diff) | |
| download | extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2 | |
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'modules/FindLCMS.cmake')
| -rw-r--r-- | modules/FindLCMS.cmake | 60 | 
1 files changed, 0 insertions, 60 deletions
| diff --git a/modules/FindLCMS.cmake b/modules/FindLCMS.cmake deleted file mode 100644 index abc9ece3..00000000 --- a/modules/FindLCMS.cmake +++ /dev/null @@ -1,60 +0,0 @@ -# - Find LCMS -# Find the LCMS (Little Color Management System) library and includes and -# This module defines -#  LCMS_INCLUDE_DIR, where to find lcms.h -#  LCMS_LIBRARIES, the libraries needed to use LCMS. -#  LCMS_DOT_VERSION, The version number of the LCMS library, e.g. "1.19" -#  LCMS_VERSION, Similar to LCMS_DOT_VERSION, but without the dots, e.g. "119" -#  LCMS_FOUND, If false, do not try to use LCMS. -# -# The minimum required version of LCMS can be specified using the -# standard syntax, e.g. find_package(LCMS 1.10) - -# Copyright (c) 2008, Adrian Page, <adrian@pagenet.plus.com> -# Copyright (c) 2009, Cyrille Berger, <cberger@cberger.net> -# -# Redistribution and use is allowed according to the terms of the BSD license. -# For details see the accompanying COPYING-CMAKE-SCRIPTS file. - - -# use pkg-config to get the directories and then use these values -# in the FIND_PATH() and FIND_LIBRARY() calls -if(NOT WIN32) -   find_package(PkgConfig) -   pkg_check_modules(PC_LCMS lcms) -   set(LCMS_DEFINITIONS ${PC_LCMS_CFLAGS_OTHER}) -endif(NOT WIN32) - -find_path(LCMS_INCLUDE_DIR lcms.h -   HINTS -   ${PC_LCMS_INCLUDEDIR} -   ${PC_LCMS_INCLUDE_DIRS} -   PATH_SUFFIXES lcms liblcms1 -) - -find_library(LCMS_LIBRARIES NAMES lcms liblcms lcms-1 liblcms-1 -   HINTS -   ${PC_LCMS_LIBDIR} -   ${PC_LCMS_LIBRARY_DIRS} -   PATH_SUFFIXES lcms -) - -# Store the LCMS version number in the cache, so we don't have to search everytime again -if(LCMS_INCLUDE_DIR  AND NOT  LCMS_VERSION) -   file(READ ${LCMS_INCLUDE_DIR}/lcms.h LCMS_VERSION_CONTENT) -   string(REGEX MATCH "#define LCMS_VERSION[ ]*[0-9]*\n" LCMS_VERSION_MATCH ${LCMS_VERSION_CONTENT}) -   if(LCMS_VERSION_MATCH) -      string(REGEX REPLACE "#define LCMS_VERSION[ ]*([0-9]*)\n" "\\1" _LCMS_VERSION ${LCMS_VERSION_MATCH}) -      string(SUBSTRING ${_LCMS_VERSION} 0 1 LCMS_MAJOR_VERSION) -      string(SUBSTRING ${_LCMS_VERSION} 1 2 LCMS_MINOR_VERSION) -   endif(LCMS_VERSION_MATCH) -   set(LCMS_VERSION "${LCMS_MAJOR_VERSION}${LCMS_MINOR_VERSION}" CACHE STRING "Version number of lcms" FORCE) -   set(LCMS_DOT_VERSION "${LCMS_MAJOR_VERSION}.${LCMS_MINOR_VERSION}" CACHE STRING "Version number of lcms split into components" FORCE) -endif(LCMS_INCLUDE_DIR  AND NOT  LCMS_VERSION) - -include(FindPackageHandleStandardArgs) -find_package_handle_standard_args(LCMS REQUIRED_VARS LCMS_LIBRARIES LCMS_INCLUDE_DIR -                                       VERSION_VAR LCMS_DOT_VERSION ) - -mark_as_advanced(LCMS_INCLUDE_DIR LCMS_LIBRARIES LCMS_VERSION) - | 
