2014-04-30 06:55:58 +00:00
|
|
|
# KI18N Translation Domain for this library
|
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwinscreenedges\")
|
|
|
|
|
2020-01-07 16:26:28 +00:00
|
|
|
include_directories(${KWin_SOURCE_DIR}/effects)
|
2019-09-17 09:15:35 +00:00
|
|
|
set(kcm_screenedges_SRCS
|
2009-02-27 15:40:53 +00:00
|
|
|
monitor.cpp
|
2013-09-29 08:09:28 +00:00
|
|
|
screenpreviewwidget.cpp
|
2020-03-05 09:45:46 +00:00
|
|
|
kwinscreenedge.cpp
|
2020-03-05 17:03:00 +00:00
|
|
|
kwinscreenedgeconfigform.cpp
|
2019-09-17 09:15:35 +00:00
|
|
|
)
|
2020-10-09 14:45:15 +00:00
|
|
|
|
2020-01-07 16:26:28 +00:00
|
|
|
qt5_add_dbus_interface(kcm_screenedges_SRCS ${KWin_SOURCE_DIR}/org.kde.kwin.Effects.xml kwin_effects_interface)
|
2017-04-02 18:56:52 +00:00
|
|
|
|
|
|
|
set(kcm_kwinscreenedges_PART_SRCS main.cpp ${kcm_screenedges_SRCS})
|
2020-10-09 14:45:15 +00:00
|
|
|
|
|
|
|
kcmutils_generate_module_data(
|
|
|
|
kcm_kwinscreenedges_PART_SRCS
|
|
|
|
MODULE_DATA_HEADER kwinscreenedgedata.h
|
|
|
|
MODULE_DATA_CLASS_NAME KWinScreenEdgeData
|
|
|
|
SETTINGS_HEADERS kwinscreenedgesettings.h
|
|
|
|
SETTINGS_CLASSES KWinScreenEdgeSettings
|
|
|
|
NAMESPACE KWin
|
|
|
|
)
|
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
ki18n_wrap_ui(kcm_kwinscreenedges_PART_SRCS main.ui)
|
2020-03-05 17:03:00 +00:00
|
|
|
kconfig_add_kcfg_files(kcm_kwinscreenedges_PART_SRCS kwinscreenedgesettings.kcfgc kwinscreenedgescriptsettings.kcfgc)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_library(kcm_kwinscreenedges MODULE ${kcm_kwinscreenedges_PART_SRCS})
|
2017-04-02 18:56:52 +00:00
|
|
|
set(kcm_screenedges_LIBS
|
2019-09-18 10:31:02 +00:00
|
|
|
Qt5::DBus
|
|
|
|
|
2013-12-11 20:41:47 +00:00
|
|
|
KF5::Completion
|
|
|
|
KF5::ConfigCore
|
|
|
|
KF5::ConfigWidgets
|
2020-10-09 14:45:15 +00:00
|
|
|
KF5::KCMUtils
|
2013-12-11 20:41:47 +00:00
|
|
|
KF5::I18n
|
2016-10-07 14:20:14 +00:00
|
|
|
KF5::Package
|
2013-10-15 23:36:24 +00:00
|
|
|
KF5::Plasma
|
2019-09-17 09:15:35 +00:00
|
|
|
KF5::Service
|
2019-09-18 10:31:02 +00:00
|
|
|
|
2014-04-04 08:45:16 +00:00
|
|
|
kwin4_effect_builtins
|
2017-04-02 18:56:52 +00:00
|
|
|
)
|
2019-09-17 09:15:35 +00:00
|
|
|
target_link_libraries(kcm_kwinscreenedges ${X11_LIBRARIES} ${kcm_screenedges_LIBS})
|
2017-04-02 18:56:52 +00:00
|
|
|
|
2020-10-09 14:45:15 +00:00
|
|
|
set(kcm_kwintouchscreenedges_PART_SRCS
|
|
|
|
touch.cpp
|
|
|
|
kwintouchscreenedgeconfigform.cpp
|
|
|
|
${kcm_screenedges_SRCS}
|
|
|
|
)
|
|
|
|
|
|
|
|
kcmutils_generate_module_data(
|
|
|
|
kcm_kwintouchscreenedges_PART_SRCS
|
|
|
|
MODULE_DATA_HEADER kwintouchscreendata.h
|
|
|
|
MODULE_DATA_CLASS_NAME KWinTouchScreenData
|
|
|
|
SETTINGS_HEADERS kwintouchscreensettings.h
|
|
|
|
SETTINGS_CLASSES KWinTouchScreenSettings
|
|
|
|
NAMESPACE KWin
|
|
|
|
)
|
|
|
|
|
2020-04-26 17:27:17 +00:00
|
|
|
ki18n_wrap_ui(kcm_kwintouchscreenedges_PART_SRCS main.ui touch.ui)
|
2020-03-05 09:45:46 +00:00
|
|
|
kconfig_add_kcfg_files(kcm_kwintouchscreenedges_PART_SRCS kwintouchscreensettings.kcfgc kwintouchscreenscriptsettings.kcfgc)
|
2019-09-17 09:15:35 +00:00
|
|
|
add_library(kcm_kwintouchscreen MODULE ${kcm_kwintouchscreenedges_PART_SRCS})
|
|
|
|
target_link_libraries(kcm_kwintouchscreen ${X11_LIBRARIES} ${kcm_screenedges_LIBS})
|
2009-02-27 15:40:53 +00:00
|
|
|
|
2019-09-17 09:15:35 +00:00
|
|
|
install(TARGETS kcm_kwinscreenedges kcm_kwintouchscreen DESTINATION ${PLUGIN_INSTALL_DIR})
|
|
|
|
install(FILES kwinscreenedges.desktop kwintouchscreen.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|