From 4627fbd4fe9971fc6f0c84e7373227a9a2ec6c71 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Thu, 10 May 2012 19:49:58 +0000 Subject: [PATCH] Allow split build for all games except libkmahjongg dependencies. Most of this is straightforward. Some more complicated changes are in 1. libkdegames: I needed to fix the headers and , which did not refer to the right include location when installed. 2. kgoldrunner: Its CMake code may not depend on OpenAL and libsndfile anymore. KGoldRunner therefore now uses the new header and enables sound only if KGAUDIO_BACKEND_OPENAL is set. KMahjongg and KShisen are not done yet. I could not create a config-script for KMahjongg because CMake currently gets confused over exported targets in multiple source directories. (D'oh...) svn path=/trunk/KDE/kdegames/ksirk/; revision=1294007 --- CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 8a71418..817a9a4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,20 @@ project(ksirk) +if(NOT COMPILING_KDEGAMES) + find_package(KDE4 REQUIRED) + include(KDE4Defaults) + include(MacroLibrary) + find_package(KDEGames REQUIRED) + find_package(QCA2 REQUIRED) + + add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS}) + add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS) + include_directories(${QDBUS_INCLUDE_DIRS} ${KDE4_INCLUDES} ${KDEGAMES_INCLUDE_DIRS}) + + macro_log_feature(QCA2_FOUND "QCA2" "Qt Cryptographic Architecture" "http://delta.affinix.com/qca" TRUE "2.0.0" "Needed to build Ksirk Jabber support's GroupWise and Jabberprotocols.") + macro_display_feature_log() +endif(NOT COMPILING_KDEGAMES) + KDE4_NO_ENABLE_FINAL(ksirk) set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${KDE4_ENABLE_EXCEPTIONS}") -- GitLab