diff options
author | Francois Andriot <francois.andriot@free.fr> | 2013-05-08 21:43:09 +0200 |
---|---|---|
committer | Slávek Banko <slavek.banko@axis.cz> | 2013-05-08 21:43:39 +0200 |
commit | 7f328ba6990044b0a9d510060a2dcd468cf0fd9f (patch) | |
tree | fa0fb5f2955c91a030b4c244667818fd4f72f070 /CMakeLists.txt | |
parent | d2f1ad161d5a3e5c672980146846936e2474fa2b (diff) | |
download | tdelibs-7f328ba6990044b0a9d510060a2dcd468cf0fd9f.tar.gz tdelibs-7f328ba6990044b0a9d510060a2dcd468cf0fd9f.zip |
Add XZ tdeioslave
Based on KDE GIT commit bbe9e8f5
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ccb8fb709..499b18cc7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -90,6 +90,7 @@ option( WITH_CONSOLEKIT "Enable ConsoleKit support" ${WITH_ALL_OPTIONS} ) OPTION( WITH_NETWORK_MANAGER_BACKEND "Enable network-manager support" OFF ) OPTION( WITH_SUDO_TDESU_BACKEND "Use sudo as backend for tdesu (default is su)" OFF ) OPTION( WITH_OLD_XDG_STD "Use the pre R14.0.0 XDG standard where both TDE and KDE are recognized in desktop files" 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} ) @@ -493,6 +494,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 ) |