summaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorFrancois Andriot <francois.andriot@free.fr>2013-05-08 21:43:09 +0200
committerSlávek Banko <slavek.banko@axis.cz>2013-05-08 22:00:59 +0200
commit35563d6195e9e6486bcf3e5cc3093fbee7e5e525 (patch)
treeaf9d2f0395e94b5c535283aae49da4fdd00665a2 /CMakeLists.txt
parente4fb61e68602152119668fffdad41edb8d840017 (diff)
downloadtdelibs-35563d6195e9e6486bcf3e5cc3093fbee7e5e525.tar.gz
tdelibs-35563d6195e9e6486bcf3e5cc3093fbee7e5e525.zip
Add XZ tdeioslave
Based on KDE GIT commit bbe9e8f5 (cherry picked from commit 7f328ba6990044b0a9d510060a2dcd468cf0fd9f)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9254a6b5c..0447fc3db 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -81,6 +81,7 @@ OPTION( WITH_PCRE "Enable pcre regex support for kjs" ON )
OPTION( WITH_INOTIFY "Enable inotify support for kio" ON )
OPTION( WITH_GAMIN "Enable FAM/GAMIN support" ${WITH_ALL_OPTIONS} )
OPTION( WITH_SUDO_KDESU_BACKEND "Use sudo as backend for kdesu (default is su)" OFF )
+OPTION( WITH_LZMA "Enable support for LZMA/XZ" ${WITH_ALL_OPTIONS} )
OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} )
OPTION( WITH_HSPELL "Enable hspell support" ${WITH_ALL_OPTIONS} )
@@ -486,6 +487,17 @@ if( BZIP2_NEED_PREFIX )
endif( BZIP2_NEED_PREFIX )
+##### check for lzma/xz #########################
+
+if( WITH_LZMA )
+ pkg_search_module( LZMA liblzma )
+ if( NOT LZMA_FOUND )
+ tde_message_fatal( "LZMA are requested, but not found on your system" )
+ endif( NOT LZMA_FOUND )
+ set( HAVE_XZ_SUPPORT 1 )
+endif( WITH_LZMA )
+
+
##### check for jpeg ############################
find_package( JPEG )