2008-02-03 07:37:34 +03:00
|
|
|
ADD_DEFINITIONS(-DKCMRULES)
|
2007-04-29 21:35:43 +04:00
|
|
|
########### next target ###############
|
|
|
|
|
2013-01-07 11:07:27 +04:00
|
|
|
set (kwinrules_MOC_HDRS yesnobox.h ../../client_machine.h)
|
2011-04-06 21:52:23 +04:00
|
|
|
qt4_wrap_cpp(kwinrules_MOC_SRCS ${kwinrules_MOC_HDRS})
|
|
|
|
set(kwinrules_SRCS ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp ${kwinrules_MOC_SRCS})
|
2007-04-30 14:01:00 +04:00
|
|
|
|
2008-02-03 07:37:34 +03:00
|
|
|
kde4_add_ui_files(kwinrules_SRCS ruleslist.ui detectwidget.ui editshortcut.ui ruleswidgetbase.ui)
|
2007-04-29 21:35:43 +04:00
|
|
|
|
|
|
|
set(kwin_rules_dialog_KDEINIT_SRCS main.cpp ${kwinrules_SRCS})
|
|
|
|
|
|
|
|
kde4_add_kdeinit_executable( kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
|
|
|
|
|
2013-05-02 13:14:40 +04:00
|
|
|
set(kwin_kcm_rules_XCB_LIBS
|
|
|
|
${XCB_XCB_LIBRARIES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${X11_LIBRARIES} ${KACTIVITIES_LIBRARY} ${kwin_kcm_rules_XCB_LIBS})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
2008-04-01 20:42:27 +04:00
|
|
|
install(TARGETS kdeinit_kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} )
|
2010-05-03 19:02:26 +04: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})
|
|
|
|
|
|
|
|
|
|
|
|
kde4_add_plugin(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
|
|
|
|
|
2013-05-02 13:14:40 +04:00
|
|
|
target_link_libraries(kcm_kwinrules ${KDE4_KDEUI_LIBS} ${KDE4_KIO_LIBS} ${X11_LIBRARIES} ${KACTIVITIES_LIBRARY} ${kwin_kcm_rules_XCB_LIBS})
|
2007-04-29 21:35:43 +04:00
|
|
|
|
|
|
|
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR} )
|
|
|
|
|
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
|
|
|
|
########### install files ###############
|
|
|
|
|
|
|
|
install( FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
|
|
|
|
|
|
|
|