From 7f328ba6990044b0a9d510060a2dcd468cf0fd9f Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Wed, 8 May 2013 21:43:09 +0200 Subject: Add XZ tdeioslave Based on KDE GIT commit bbe9e8f5 --- CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CMakeLists.txt') 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 ) -- cgit v1.2.1