2014-04-30 10:55:58 +04:00
|
|
|
# KI18N Translation Domain for this library
|
|
|
|
add_definitions(-DTRANSLATION_DOMAIN=\"kcmkwinrules\")
|
2013-11-15 16:37:47 +04:00
|
|
|
add_definitions(-DKCMRULES)
|
2007-04-29 21:35:43 +04:00
|
|
|
########### next target ###############
|
|
|
|
|
2016-08-16 16:31:14 +03:00
|
|
|
include_directories(../../)
|
2019-09-17 12:15:35 +03:00
|
|
|
set(kwinrules_MOC_HDRS yesnobox.h ../../cursor.h ../../plugins/platforms/x11/standalone/x11cursor.h)
|
2014-04-03 12:15:57 +04:00
|
|
|
qt5_wrap_cpp(kwinrules_MOC_SRCS ${kwinrules_MOC_HDRS})
|
2020-02-18 16:52:08 +03:00
|
|
|
set(kwinrules_SRCS ../../rulebooksettings.cpp ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp main.cpp ${kwinrules_MOC_SRCS})
|
2007-04-30 14:01:00 +04:00
|
|
|
|
2014-04-30 10:55:58 +04:00
|
|
|
ki18n_wrap_ui(kwinrules_SRCS ruleslist.ui detectwidget.ui editshortcut.ui ruleswidgetbase.ui)
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2020-02-18 16:52:08 +03:00
|
|
|
kconfig_add_kcfg_files(kwinrules_SRCS ../../rulesettings.kcfgc)
|
|
|
|
kconfig_add_kcfg_files(kwinrules_SRCS ../../rulebooksettingsbase.kcfgc)
|
|
|
|
|
2020-01-22 15:45:51 +03:00
|
|
|
add_executable(kwin_rules_dialog ${kwinrules_SRCS})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2013-05-02 13:14:40 +04:00
|
|
|
set(kwin_kcm_rules_XCB_LIBS
|
2019-09-17 12:15:35 +03:00
|
|
|
XCB::CURSOR
|
2014-02-25 18:48:39 +04:00
|
|
|
XCB::XCB
|
|
|
|
XCB::XFIXES
|
2013-05-02 13:14:40 +04:00
|
|
|
)
|
|
|
|
|
2013-09-30 11:56:35 +04:00
|
|
|
set(kcm_libs
|
2019-09-18 13:31:02 +03:00
|
|
|
Qt5::Concurrent
|
|
|
|
Qt5::X11Extras
|
|
|
|
|
2013-12-12 00:41:47 +04:00
|
|
|
KF5::Completion
|
2014-03-18 10:41:30 +04:00
|
|
|
KF5::ConfigWidgets
|
2013-12-12 00:41:47 +04:00
|
|
|
KF5::I18n
|
2014-03-18 10:41:30 +04:00
|
|
|
KF5::Service
|
2013-12-12 00:41:47 +04:00
|
|
|
KF5::WindowSystem
|
2013-09-30 11:56:35 +04:00
|
|
|
KF5::XmlGui
|
|
|
|
)
|
|
|
|
|
2019-09-17 12:15:35 +03:00
|
|
|
if (KWIN_BUILD_ACTIVITIES)
|
2014-02-13 23:06:33 +04:00
|
|
|
set(kcm_libs ${kcm_libs} KF5::Activities)
|
2014-02-03 16:40:47 +04:00
|
|
|
endif()
|
|
|
|
|
2020-01-22 15:45:51 +03:00
|
|
|
target_link_libraries(kwin_rules_dialog ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2019-09-17 12:15:35 +03:00
|
|
|
install(TARGETS kwin_rules_dialog DESTINATION ${LIBEXEC_INSTALL_DIR})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
set(kcm_kwinrules_PART_SRCS kcm.cpp ${kwinrules_SRCS})
|
|
|
|
|
2013-11-15 16:37:47 +04:00
|
|
|
add_library(kcm_kwinrules MODULE ${kcm_kwinrules_PART_SRCS})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2013-09-30 11:56:35 +04:00
|
|
|
target_link_libraries(kcm_kwinrules ${kcm_libs} ${kwin_kcm_rules_XCB_LIBS})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2019-09-17 12:15:35 +03:00
|
|
|
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
2019-09-17 12:15:35 +03:00
|
|
|
install(FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR})
|