Enable lcms support on Windows.
[blender.git] / CMakeLists.txt
index f527f9d410c3e187fe5797e7950564096b6bc460..e4ef5680e025afb8a275266b6c6c04f5091e8076 100644 (file)
@@ -478,13 +478,15 @@ IF(WIN32)
                        SET(OPENCOLLADA_INC ${OPENCOLLADA}/include)
                        SET(OPENCOLLADA_LIBPATH ${OPENCOLLADA}/lib)
                        SET(OPENCOLLADA_LIB OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils OpenCOLLADAStreamWriter MathMLSolver GeneratedSaxParser xml2 buffer ftoa)
-                       #pcre is bundled with openCollada
-                       #SET(PCRE ${LIBDIR}/pcre)
-                       #SET(PCRE_LIBPATH ${PCRE}/lib)
                        SET(PCRE_LIB pcre)
                ENDIF(WITH_OPENCOLLADA)
                
-               # TODO: IF(WITH_LCMS)
+               IF(WITH_LCMS)
+                       SET(LCMS ${LIBDIR}/lcms)
+                       SET(LCMS_INC ${LCMS}/include)
+                       SET(LCMS_LIBPATH ${LCMS}/lib)
+                       SET(LCMS_LIB lcms)
+               ENDIF(WITH_LCMS)
         
                IF(WITH_FFMPEG)
                        SET(FFMPEG ${LIBDIR}/ffmpeg)
@@ -606,9 +608,6 @@ IF(WIN32)
                        SET(OPENCOLLADA_INC ${OPENCOLLADA}/include)
                        SET(OPENCOLLADA_LIBPATH ${OPENCOLLADA}/lib ${OPENCOLLADA}/lib)
                        SET(OPENCOLLADA_LIB OpenCOLLADAStreamWriter OpenCOLLADASaxFrameworkLoader OpenCOLLADAFramework OpenCOLLADABaseUtils GeneratedSaxParser UTF MathMLSolver expat pcre buffer ftoa)
-                       #pcre is bundled with openCollada
-                       #SET(PCRE ${LIBDIR}/pcre)
-                       #SET(PCRE_LIBPATH ${PCRE}/lib)
                        SET(PCRE_LIB pcre)
                ENDIF(WITH_OPENCOLLADA)