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