-
Notifications
You must be signed in to change notification settings - Fork 1
/
CMakeLists.txt
97 lines (78 loc) · 2.25 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
cmake_minimum_required(VERSION 3.29)
project(system-installer VERSION 0.1 LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_CXX_STANDARD_REQUIRED OFF)
cmake_policy(SET CMP0160 OLD)
find_package(ECM 6.0.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
include(ECMDeprecationSettings)
include(ECMInstallIcons)
include(ECMPoQmTools)
include(KDEInstallDirs)
include(KDECMakeSettings)
include(FeatureSummary)
include(GNUInstallDirs)
set(CMAKE_AUTOUIC ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
ecm_set_disabled_deprecation_versions(
QT 6.4.0
KF 5.240
)
find_package(Qt6DBus 6.5.0 CONFIG REQUIRED)
find_package(QT
NAMES Qt6
REQUIRED COMPONENTS
Core
Widgets
Network
)
find_package(KF6
REQUIRED COMPONENTS
Auth
CoreAddons
KIO
I18n
)
set(PROJECT_SOURCES
main.cpp
mainwindow.cpp
mainwindow.h
mainwindow.ui
colorizedpixmap.h
colorizedpixmap.cpp
colorchooser.h
colorchooser.cpp
colorchooser.ui
installationhandler.h
installationhandler.cpp
resources.qrc
)
add_executable(system-installer_authmount kauth/authmount.cpp)
target_link_libraries(system-installer_authmount KF6::AuthCore)
add_executable(system-installer ${PROJECT_SOURCES})
target_compile_options(system-installer PRIVATE -Wno-dev)
target_link_libraries(system-installer
PUBLIC
Qt6::Core
Qt6::Widgets
Qt6::Network
KF6::AuthCore
KF6::KIOCore
KF6::I18n
)
install(PROGRAMS org.kde.system-installer.desktop DESTINATION ${KDE_INSTALL_APPDIR})
install(TARGETS system-installer_authmount DESTINATION ${KAUTH_HELPER_INSTALL_DIR})
kauth_install_helper_files(system-installer_authmount org.kde.systeminstaller root)
kauth_install_actions(org.kde.systeminstaller kauth/org.kde.systeminstaller.actions)
install(TARGETS system-installer
BUNDLE DESTINATION .
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
)
install(FILES scripts/system-installer_colorize-icons.sh
scripts/system-installer_colorize-color-scheme.sh
PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ
GROUP_EXECUTE GROUP_READ
WORLD_EXECUTE WORLD_READ
DESTINATION bin)