<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>cmake/modules/FindLCMS.cmake</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -22,6 +22,7 @@ option(ENABLE_SPLASH &quot;Build the Splash graphics backend.&quot; ON)
 option(ENABLE_UTILS &quot;Compile poppler command line utils.&quot; ON)
 option(ENABLE_ABIWORD &quot;Build the Abiword backend.&quot; ON)
 option(ENABLE_LIBOPENJPEG &quot;Use libopenjpeg for JPX streams.&quot; ON)
+option(ENABLE_LCMS &quot;Use liblcms for color management.&quot; ON)
 option(ENABLE_ZLIB &quot;TODO&quot; OFF)
 option(USE_EXCEPTIONS &quot;Throw exceptions to deal with not enough memory and similar problems.&quot; OFF)
 option(USE_FIXEDPOINT &quot;Use fixed point arithmetic&quot; OFF)
@@ -70,6 +71,10 @@ if(ENABLE_LIBOPENJPEG)
   find_package(LIBOPENJPEG)
   set(ENABLE_LIBOPENJPEG ${LIBOPENJPEG_FOUND})
 endif(ENABLE_LIBOPENJPEG)
+if(ENABLE_LCMS)
+  find_package(LCMS)
+  set(USE_CMS ${LCMS_FOUND})
+endif(ENABLE_LCMS)
 
 add_definitions(-DHAVE_CONFIG_H=1 ${FONTCONFIG_DEFINITIONS})
 include_directories(
@@ -233,6 +238,9 @@ else (LIBOPENJPEG_FOUND)
     poppler/JPXStream.cc
   )
 endif(LIBOPENJPEG_FOUND)
+if(USE_CMS)
+  set(poppler_LIBS ${poppler_LIBS} ${LCMS_LIBRARIES})
+endif(USE_CMS)
 if(ENABLE_ABIWORD)
   set(poppler_SRCS ${poppler_SRCS}
     poppler/ABWOutputDev.cc
@@ -434,4 +442,5 @@ show_end_message(&quot;use libjpeg&quot; ENABLE_LIBJPEG)
 show_end_message(&quot;use libpng&quot; ENABLE_LIBPNG)
 show_end_message(&quot;use zlib&quot; ENABLE_ZLIB)
 show_end_message(&quot;use libopenjpeg&quot; LIBOPENJPEG_FOUND)
+show_end_message(&quot;use cms&quot; USE_CMS)
 show_end_message(&quot;command line utils&quot; ENABLE_UTILS)</diff>
      <filename>CMakeLists.txt</filename>
    </modified>
    <modified>
      <diff>@@ -9,6 +9,9 @@
 /* Use libpng to export images in pdftohtml. */
 #cmakedefine ENABLE_LIBPNG 1
 
+/* Use liblcms for color management. */
+#cmakedefine USE_CMS 1
+
 /* Use cairo for rendering. */
 #cmakedefine HAVE_CAIRO 1
 </diff>
      <filename>config.h.cmake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>140b8ed97416f9c2ec02eb749ca45ca50bd651a8</id>
    </parent>
  </parents>
  <author>
    <name>Albert Astals Cid</name>
    <email>aacid@kde.org</email>
  </author>
  <url>http://github.com/kou/poppler-test/commit/18d584158a781fecb4f696b01fb4d17803ce7d7a</url>
  <id>18d584158a781fecb4f696b01fb4d17803ce7d7a</id>
  <committed-date>2009-01-07T09:02:59-08:00</committed-date>
  <authored-date>2009-01-07T08:55:48-08:00</authored-date>
  <message>Add lcms option to cmake buildsystem</message>
  <tree>eeae5f06447cb00a73720fcd8f541c4499a5a1e5</tree>
  <committer>
    <name>Albert Astals Cid</name>
    <email>aacid@kde.org</email>
  </committer>
</commit>
