From 83bd0da219a825492fd79077691363a2226d0794 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Wed, 11 Jan 2012 16:26:55 -0600 Subject: [PATCH] Add WITH_ALL_OPTIONS to CMake (cherry picked from commit 7845d1204e75630251bc9fac4f65c0be8a0f617b) --- CMakeLists.txt | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index be57552a8..9254a6b5c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,29 +59,31 @@ add_custom_target(install-apidox ##### user requested options #################### +OPTION( WITH_ALL_OPTIONS "Enable all optional support" OFF ) + OPTION( KDE_MALLOC "Use own malloc implementation" OFF ) OPTION( KDE_MALLOC_DEBUG "Enable debugging in fast malloc" OFF ) OPTION( KDE_MALLOC_FULL "Make alloc as fast as possible" OFF ) OPTION( WITH_ARTS "Build with aRts" ON ) OPTION( WITH_ALSA "Enable ALSA support" ON ) -OPTION( WITH_LIBART "Enable libart support (for SVG icons)" OFF ) -OPTION( WITH_LIBIDN "Enable support for libidn" OFF ) +OPTION( WITH_LIBART "Enable libart support (for SVG icons)" ${WITH_ALL_OPTIONS} ) +OPTION( WITH_LIBIDN "Enable support for libidn" ${WITH_ALL_OPTIONS} ) OPTION( WITH_SSL "Enable support for SSL" ON ) OPTION( WITH_CUPS "Enable CUPS support" ON ) -OPTION( WITH_LUA "Enable LUA support" OFF ) -OPTION( WITH_TIFF "Enable tiff support" OFF ) -OPTION( WITH_JASPER "Enable jasper (jpeg2k) support" OFF ) -OPTION( WITH_OPENEXR "Enable openexr support" OFF ) -OPTION( WITH_UTEMPTER "Use utempter for utmp management" OFF ) -OPTION( WITH_AVAHI "Enable AVAHI support" OFF ) +OPTION( WITH_LUA "Enable LUA support" ${WITH_ALL_OPTIONS} ) +OPTION( WITH_TIFF "Enable tiff support" ${WITH_ALL_OPTIONS} ) +OPTION( WITH_JASPER "Enable jasper (jpeg2k) support" ${WITH_ALL_OPTIONS} ) +OPTION( WITH_OPENEXR "Enable openexr support" ${WITH_ALL_OPTIONS} ) +OPTION( WITH_UTEMPTER "Use utempter for utmp management" ${WITH_ALL_OPTIONS} ) +OPTION( WITH_AVAHI "Enable AVAHI support" ${WITH_ALL_OPTIONS} ) 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_ASPELL "Enable aspell support" OFF ) -OPTION( WITH_HSPELL "Enable hspell support" OFF ) +OPTION( WITH_ASPELL "Enable aspell support" ${WITH_ALL_OPTIONS} ) +OPTION( WITH_HSPELL "Enable hspell support" ${WITH_ALL_OPTIONS} ) set( KDE4_DEFAULT_HOME ".kde" CACHE PATH "KDE4 home directory passed as KDEHOME to kde4 applications" )