Commit b9e8f898 authored by Thorsten Zachmann's avatar Thorsten Zachmann
Browse files

o make it possible to have lcms installed outside of the normal dirs

  it now first searches with pkg-config

svn path=/trunk/koffice/; revision=600446
parent a47475d6
......@@ -6,21 +6,35 @@
# LCMS_VERSION, The value of LCMS_VERSION defined in lcms.h
# LCMS_FOUND, If false, do not try to use LCMS.
# use pkg-config to get the directories and then use these values
# in the FIND_PATH() and FIND_LIBRARY() calls
INCLUDE(UsePkgConfig)
PKGCONFIG(lcms _LcmsIncDir _LcmsLinkDir _LcmsLinkFlags _LcmsCflags)
SET(LCMS_DEFINITIONS ${_LcmsCflags})
find_path(LCMS_INCLUDE_DIR lcms.h
${_LcmsIncDir}
${CMAKE_INSTALL_PREFIX}/include
/usr/include
/usr/include/lcms
/usr/local/include
/usr/local/include/lcms
NO_DEFAULT_PATH
)
find_path(LCMS_INCLUDE_DIR lcms.h
)
find_library(LCMS_LIBRARIES NAMES lcms liblcms
PATHS
PATHS
${_LcmsLinkDir}
${CMAKE_INSTALL_PREFIX}/lib
/usr/lib
/usr/lib/lcms
/usr/local/lib
/usr/local/lib/lcms
NO_DEFAULT_PATH
)
find_library(LCMS_LIBRARIES NAMES lcms liblcms
)
if(LCMS_INCLUDE_DIR AND LCMS_LIBRARIES)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment