This repository has been archived by the owner on Dec 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
63 lines (46 loc) · 1.91 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
project(nx-systemtray-applet)
set(PROJECT_VERSION "1.0")
set(PROJECT_VERSION_MAJOR 1)
cmake_minimum_required(VERSION 2.8.12 FATAL_ERROR)
set(QT_MIN_VERSION "5.7.0")
set(KF5_MIN_VERSION "5.32.0")
find_package(Qt5 ${QT_MIN_VERSION} CONFIG REQUIRED COMPONENTS Gui Quick Test DBus)
find_package(ECM 1.8.0 REQUIRED NO_MODULE)
set(CMAKE_MODULE_PATH ${ECM_MODULE_PATH} ${ECM_KDE_MODULE_DIR})
include(KDEInstallDirs)
include(KDECMakeSettings)
include(KDECompilerSettings NO_POLICY_SCOPE)
include(ECMPackageConfigHelpers)
include(ECMMarkNonGuiExecutable)
include(CMakePackageConfigHelpers)
include(WriteBasicConfigVersionFile)
include(CheckIncludeFiles)
include(FeatureSummary)
include(ECMOptionalAddSubdirectory)
include(ECMQtDeclareLoggingCategory)
include(KDEPackageAppTemplates)
find_package(KF5 ${KF5_MIN_VERSION} REQUIRED COMPONENTS
Plasma Declarative I18n IconThemes XmlGui KIO )
find_package(KF5Notifications)
add_definitions(-DTRANSLATION_DOMAIN=\"plasma_applet_org.nx.private.systemtray\")
plasma_install_package(package org.nx.private.systemtray)
set(systemtray_SRCS
systemtray.cpp
)
ecm_qt_declare_logging_category(systemtray_SRCS HEADER debug.h
IDENTIFIER SYSTEM_TRAY
CATEGORY_NAME nx.systemtray
DEFAULT_SEVERITY Info)
add_library(org.nx.private.systemtray MODULE ${systemtray_SRCS})
kcoreaddons_desktop_to_json(org.nx.private.systemtray package/metadata.desktop)
target_link_libraries(org.nx.private.systemtray
Qt5::Gui
Qt5::Quick
KF5::Plasma
Qt5::DBus
KF5::IconThemes
KF5::XmlGui
KF5::I18n)
install(TARGETS org.nx.private.systemtray DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/applets)
add_subdirectory(container)
add_subdirectory(tests)