summaryrefslogtreecommitdiff
blob: ba50fc5152741824ef9f56f1c6604dd137eeb686 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
commit ee0f8f32417138e26d06f1c99cee84c2c8246f83
Author: Johannes Huber <johu@gentoo.org>
Date:   Sun Oct 20 20:05:12 2013 +0200

    Drop unneeded configure check on libkdegames
    
    It is not needed for build and runtime.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index b93bcc1..8db109d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,15 +1,12 @@
 project(libkmahjongg)
 
-if(NOT COMPILING_KDEGAMES)
-	find_package(KDE4 REQUIRED)
-	include(KDE4Defaults)
-	include(MacroLibrary)
-	find_package(KDEGames REQUIRED)
+find_package(KDE4 REQUIRED)
+include(KDE4Defaults)
+include(MacroLibrary)
 
-	add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
-	add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
-	include_directories(${KDE4_INCLUDES} ${CMAKE_SOURCE_DIR}/includes)
-endif(NOT COMPILING_KDEGAMES)
+add_definitions(${QT_DEFINITIONS} ${KDE4_DEFINITIONS})
+add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
+include_directories(${KDE4_INCLUDES} ${CMAKE_SOURCE_DIR}/includes)
 
 add_subdirectory( tilesets ) 
 add_subdirectory( backgrounds ) 
@@ -27,7 +24,7 @@ kde4_add_ui_files(kmahjongg_LIB_SRCS kmahjonggtilesetselector.ui kmahjonggbackgr
 
 kde4_add_library(kmahjongglib SHARED ${kmahjongg_LIB_SRCS})
 
-target_link_libraries(kmahjongglib kdegames ${KDE4_KDEUI_LIBS})
+target_link_libraries(kmahjongglib ${KDE4_KDEUI_LIBS})
 
 set_target_properties(kmahjongglib PROPERTIES VERSION ${GENERIC_LIB_VERSION} SOVERSION ${GENERIC_LIB_SOVERSION} )