CMakeLists.txt 1.48 KB
Newer Older
Martin Flöser's avatar
Martin Flöser committed
1
# KI18N Translation Domain for this library
2
add_definitions(-DTRANSLATION_DOMAIN=\"kcm_workspace\")
Marco Martin's avatar
Marco Martin committed
3

4
5
6
########### next target ###############
set(kcm_workspace_SRCS
  workspaceoptions.cpp
7
8
9
10
11
12
13
14
15
  workspaceoptionsdata.cpp
)

kcmutils_generate_module_data(
    kcm_workspace_SRCS
    MODULE_DATA_HEADER workspaceoptionsdata.h
    MODULE_DATA_CLASS_NAME WorkspaceOptionsData
    SETTINGS_HEADERS workspaceoptions_plasmasettings.h workspaceoptions_kdeglobalssettings.h
    SETTINGS_CLASSES WorkspaceOptionsPlasmaSettings WorkspaceOptionsGlobalsSettings
16
)
Marco Martin's avatar
Marco Martin committed
17

18
19
20
kconfig_add_kcfg_files(kcm_workspace_SRCS workspaceoptions_kdeglobalssettings.kcfgc GENERATE_MOC)
kconfig_add_kcfg_files(kcm_workspace_SRCS workspaceoptions_plasmasettings.kcfgc GENERATE_MOC)

21
add_library(kcm_workspace MODULE ${kcm_workspace_SRCS})
Marco Martin's avatar
Marco Martin committed
22

23
24
25
target_link_libraries(kcm_workspace
    KF5::QuickAddons
    KF5::I18n
26
    KF5::KCMUtils
27
28
    KF5::ConfigWidgets
    KF5::Declarative
29
    KF5::KDELibs4Support # kglobalsettings
30
31

    Qt5::DBus
32
)
Marco Martin's avatar
Marco Martin committed
33

34
kcoreaddons_desktop_to_json(kcm_workspace "kcm_workspace.desktop" SERVICE_TYPES kcmodule.desktop)
Marco Martin's avatar
Marco Martin committed
35
36

########### install files ###############
37
38
install(FILES workspaceoptions_kdeglobalssettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
install(FILES workspaceoptions_plasmasettings.kcfg DESTINATION ${KDE_INSTALL_KCFGDIR})
Claudius Ellsel's avatar
Claudius Ellsel committed
39
install(FILES kcm_workspace.desktop DESTINATION ${KDE_INSTALL_KSERVICES5DIR})
40
install(TARGETS kcm_workspace DESTINATION ${KDE_INSTALL_PLUGINDIR}/kcms)
Marco Martin's avatar
Marco Martin committed
41

42
kpackage_install_package(package kcm_workspace kcms)