From 1d8c89409cb7a13262ffd77da37148c917c63c50 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/lskat/; revision=1294007 --- CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1f74201..e08588d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,16 @@ project(lskat) +if(NOT COMPILING_KDEGAMES) + find_package(KDE4 REQUIRED) + include(KDE4Defaults) + include(MacroLibrary) + find_package(KDEGames 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}) +endif(NOT COMPILING_KDEGAMES) + add_subdirectory(src) add_subdirectory(grafix) -- GitLab