1 ADD_DEFINITIONS(-DKCMRULES)
2 ########### next target ###############
4 set(kwinrules_SRCS ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp)
6 kde4_add_ui_files(kwinrules_SRCS ruleslist.ui detectwidget.ui editshortcut.ui ruleswidgetbase.ui)
8 set(kwin_rules_dialog_KDEINIT_SRCS main.cpp ${kwinrules_SRCS})
11 kde4_add_kdeinit_executable( kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
13 target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
15 install(TARGETS kdeinit_kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} )
16 install(TARGETS kwin_rules_dialog ${INSTALL_TARGETS_DEFAULT_ARGS} )
18 ########### next target ###############
20 set(kcm_kwinrules_PART_SRCS kcm.cpp ${kwinrules_SRCS})
23 kde4_add_plugin(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
25 target_link_libraries(kcm_kwinrules ${KDE4_KDEUI_LIBS} ${X11_LIBRARIES})
27 install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR} )
30 ########### next target ###############
33 ########### install files ###############
35 install( FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR} )