~kubuntu-members/kpat/4.11

« back to all changes in this revision

Viewing changes to CMakeLists.txt

  • Committer: Stefan Majewsky
  • Date: 2012-05-10 19:49:58 UTC
  • Revision ID: git-v1:6019a2fc5dc5c7020922da10dc39970a3f1baaea
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 <KgAudioScene> and
   <KgSound>, 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
   <libkdegames_capabilities.h> 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/kpat/; revision=1294007

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
project( kpat )
2
2
 
 
3
if(NOT COMPILING_KDEGAMES)
 
4
        find_package(KDE4 REQUIRED)
 
5
        include(KDE4Defaults)
 
6
        include(MacroLibrary)
 
7
        find_package(KDEGames REQUIRED)
 
8
 
 
9
        add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
 
10
        add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
 
11
        include_directories(${QDBUS_INCLUDE_DIRS} ${KDE4_INCLUDES} ${KDEGAMES_INCLUDE_DIRS})
 
12
endif(NOT COMPILING_KDEGAMES)
 
13
 
3
14
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/libkcardgame/include )
4
15
 
5
16
add_subdirectory( icons )