forked from KDE/kpat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
115 lines (98 loc) · 2.67 KB
/
CMakeLists.txt
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
project(kpat)
cmake_minimum_required (VERSION 2.8.12 FATAL_ERROR)
set (QT_MIN_VERSION "5.2.0")
set (KF5_MIN_VERSION "5.15.0")
find_package(ECM 1.7.0 REQUIRED CONFIG)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
find_package(Qt5 ${QT_MIN_VERSION} REQUIRED NO_MODULE COMPONENTS Widgets Svg)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Completion
Config
ConfigWidgets
CoreAddons
Crash
DBusAddons
DocTools
GuiAddons
I18n
KIO
NewStuff
WidgetsAddons
XmlGui
)
find_package(KF5KDEGames 4.9.0 REQUIRED)
include(FeatureSummary)
include(ECMAddAppIcon)
include(ECMInstallIcons)
include(KDEInstallDirs)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(KDECMakeSettings)
add_definitions(-DQT_USE_FAST_CONCATENATION -DQT_USE_FAST_OPERATOR_PLUS)
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/libkcardgame/include)
add_subdirectory(icons)
add_subdirectory(libkcardgame)
add_subdirectory(mimetypes)
add_subdirectory(previews)
add_subdirectory(sounds)
add_subdirectory(themes)
add_subdirectory(doc)
set(kpat_SRCS
main.cpp
dealer.cpp
dealerinfo.cpp
gameselectionscene.cpp
mainwindow.cpp
messagebox.cpp
numbereddealdialog.cpp
patpile.cpp
pileutils.cpp
renderer.cpp
soundengine.cpp
statisticsdialog.cpp
view.cpp
patsolve/memory.cpp
patsolve/patsolve.cpp
clock.cpp
patsolve/clocksolver.cpp
fortyeight.cpp
patsolve/fortyeightsolver.cpp
freecell.cpp
patsolve/freecellsolver.cpp
golf.cpp
patsolve/golfsolver.cpp
grandf.cpp
patsolve/grandfsolver.cpp
gypsy.cpp
patsolve/gypsysolver.cpp
idiot.cpp
patsolve/idiotsolver.cpp
klondike.cpp
patsolve/klondikesolver.cpp
mod3.cpp
patsolve/mod3solver.cpp
simon.cpp
patsolve/simonsolver.cpp
spider.cpp
patsolve/spidersolver.cpp
yukon.cpp
patsolve/yukonsolver.cpp
)
ki18n_wrap_ui( kpat_SRCS statisticsdialog.ui )
kconfig_add_kcfg_files( kpat_SRCS settings.kcfgc )
file(GLOB ICONS_SRCS "${CMAKE_CURRENT_SOURCE_DIR}/icons/*-apps-kpat.png")
ecm_add_app_icon(kpat_SRCS ICONS ${ICONS_SRCS})
add_executable(kpat ${kpat_SRCS})
target_link_libraries(kpat
KF5::Crash
KF5::DBusAddons
KF5::I18n
KF5::KIOCore
KF5KDEGames
kcardgame
)
install(TARGETS kpat ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
########### install files ###############
install(PROGRAMS org.kde.kpat.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(FILES kpatui.rc DESTINATION ${KDE_INSTALL_KXMLGUI5DIR}/kpat)
install(FILES kpat.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
feature_summary(WHAT ALL INCLUDE_QUIET_PACKAGES FATAL_ON_MISSING_REQUIRED_PACKAGES)