From c533db865e57bf35a8855a4f22159b1d80316a48 Mon Sep 17 00:00:00 2001 From: Johannes Huber Date: Fri, 6 Aug 2010 03:00:55 +0200 Subject: [PATCH] build system improvement, fixes #592 disbale gui build options for core only build --- CMakeLists.txt | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 3096bbd..7a770d9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -58,6 +58,22 @@ if(APPLE) option(DEPLOY "Mac OS X only! Adds required libs to bundle resources and create a dmg. Note: requires Qt to be built with 10.4u SDK" OFF) endif(APPLE) +# Disable all gui build options on core only build +if(NOT WANT_MONO AND NOT WANT_QTCLIENT) + if(WITH_KDE) + set(WITH_KDE OFF) + endif(WITH_KDE) + if(WITH_PHONON) + set(WITH_PHONON OFF) + endif(WITH_PHONON) + if(WITH_WEBKIT) + set(WITH_WEBKIT OFF) + endif(WITH_WEBKIT) + if(WITH_LIBINDICATE) + set(WITH_LIBINDICATE OFF) + endif(WITH_LIBINDICATE) +endif(NOT WANT_MONO AND NOT WANT_QTCLIENT) + # Default to embedding data in the static case if(STATIC OR WIN32) set(EMBED_DEFAULT ON) -- 1.7.1