summaryrefslogtreecommitdiffstats
path: root/ksvg/ConfigureChecks.cmake
diff options
context:
space:
mode:
authorSlávek Banko <slavek.banko@axis.cz>2014-10-09 21:08:16 +0200
committerSlávek Banko <slavek.banko@axis.cz>2014-10-09 21:08:16 +0200
commitb34c4d8c337aba6d7d44dfd58087ebd6e2d143e3 (patch)
tree1f28011425bdb7a577ad23d91d0007b9f215e17d /ksvg/ConfigureChecks.cmake
parente76fc32e0582f8bc801fb2c253dc826fb61873ec (diff)
downloadtdegraphics-b34c4d8c337aba6d7d44dfd58087ebd6e2d143e3.tar.gz
tdegraphics-b34c4d8c337aba6d7d44dfd58087ebd6e2d143e3.zip
Add support for lcms2
Diffstat (limited to 'ksvg/ConfigureChecks.cmake')
-rw-r--r--ksvg/ConfigureChecks.cmake21
1 files changed, 13 insertions, 8 deletions
diff --git a/ksvg/ConfigureChecks.cmake b/ksvg/ConfigureChecks.cmake
index 72a9a6b2..e3c3893a 100644
--- a/ksvg/ConfigureChecks.cmake
+++ b/ksvg/ConfigureChecks.cmake
@@ -10,16 +10,21 @@
#################################################
# lcms
-check_include_file( lcms.h HAVE_LCMS_H )
-if( HAVE_LCMS_H )
- set( LCMS_HEADER "lcms.h" CACHE INTERNAL "" FORCE )
-endif( )
+check_include_file( lcms2.h HAVE_LCMS2_H )
+if( HAVE_LCMS2_H )
+ set( LCMS_HEADER "lcms2.h" CACHE INTERNAL "" FORCE )
+ set( LCMS_LIBRARY lcms2 )
+else( HAVE_LCMS2_H )
+ check_include_file( lcms.h HAVE_LCMS_H )
+ if( HAVE_LCMS_H )
+ set( LCMS_HEADER "lcms.h" CACHE INTERNAL "" FORCE )
+ set( LCMS_LIBRARY lcms )
+ endif( HAVE_LCMS_H )
+endif( HAVE_LCMS2_H )
if( LCMS_HEADER )
- check_library_exists( lcms VEC3init "" HAVE_LCMS )
+ check_library_exists( ${LCMS_LIBRARY} cmsOpenProfileFromFile "" HAVE_LCMS )
endif( )
-if( HAVE_LCMS )
- set( LCMS_LIBRARY lcms )
-else( )
+if( NOT HAVE_LCMS )
tde_message_fatal( "lcms is required, but was not found on your system" )
endif( )