-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
44 lines (33 loc) · 915 Bytes
/
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
cmake_minimum_required(VERSION 3.16)
project(waydroidkcm)
set(QT_MIN_VERSION "5.15.0")
set(KF5_MIN_VERSION "5.97.0")
find_package(ECM ${KF5_MIN_VERSION} REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS
Quick
Core
Concurrent
Widgets
)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
I18n
KCMUtils
Declarative
Config
)
kcoreaddons_add_plugin(kcm_waydroid INSTALL_NAMESPACE "plasma/kcms/systemsettings")
target_sources(kcm_waydroid PRIVATE kcm_waydroid.cpp)
target_link_libraries(kcm_waydroid
Qt5::Core
Qt5::Concurrent
Qt5::Widgets
KF5::CoreAddons
KF5::I18n
KF5::QuickAddons
)
kpackage_install_package(package kcm_waydroid kcms)
kcmutils_generate_desktop_file(kcm_waydroid)