2007-04-03 07:01:23 +00:00
|
|
|
include_directories( ${CMAKE_SOURCE_DIR}/workspace/kwin/lib ${CMAKE_SOURCE_DIR}/workspace/kwin/lib )
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2006-03-18 11:25:38 +00:00
|
|
|
ADD_DEFINITIONS(-DKCMRULES)
|
2006-02-28 08:01:15 +00:00
|
|
|
########### next target ###############
|
|
|
|
|
2006-03-02 17:05:06 +00:00
|
|
|
set(kwinrules_SRCS ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp)
|
2007-04-03 07:01:23 +00:00
|
|
|
|
|
|
|
kde4_add_ui_files(kwinrules_SRCS ruleslistbase.ui detectwidgetbase.ui)
|
|
|
|
kde4_add_ui3_files(kwinrules_SRCS ruleswidgetbase.ui editshortcutbase.ui )
|
2006-03-02 17:05:06 +00:00
|
|
|
|
|
|
|
set(kwin_rules_dialog_KDEINIT_SRCS main.cpp ${kwinrules_SRCS})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2007-04-03 07:01:23 +00:00
|
|
|
kde4_automoc(${kwin_rules_dialog_KDEINIT_SRCS})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
kde4_add_kdeinit_executable( kwin_rules_dialog ${kwin_rules_dialog_KDEINIT_SRCS})
|
|
|
|
|
2007-04-03 07:01:23 +00:00
|
|
|
target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_LIBS} ${QT_QT3SUPPORT_LIBRARY} )
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2006-07-04 17:09:53 +00:00
|
|
|
install(TARGETS kdeinit_kwin_rules_dialog DESTINATION ${LIB_INSTALL_DIR} )
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
target_link_libraries( kwin_rules_dialog kdeinit_kwin_rules_dialog )
|
2007-04-03 07:01:23 +00:00
|
|
|
install(TARGETS kwin_rules_dialog DESTINATION ${BIN_INSTALL_DIR})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
########### next target ###############
|
|
|
|
|
2006-03-02 17:05:06 +00:00
|
|
|
set(kcm_kwinrules_PART_SRCS kcm.cpp ${kwinrules_SRCS})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2007-04-03 07:01:23 +00:00
|
|
|
kde4_automoc(${kcm_kwinrules_PART_SRCS})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
kde4_add_plugin(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
|
|
|
|
|
|
|
|
|
2007-04-03 07:01:23 +00:00
|
|
|
target_link_libraries(kcm_kwinrules ${KDE4_KDEUI_LIBS} ${QT_QT3SUPPORT_LIBRARY})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2006-07-04 17:09:53 +00:00
|
|
|
install(TARGETS kcm_kwinrules DESTINATION ${PLUGIN_INSTALL_DIR} )
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
|
2006-10-23 06:53:27 +00:00
|
|
|
########### install files ###############
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2006-10-23 06:53:27 +00:00
|
|
|
install( FILES kwinrules.desktop DESTINATION ${SERVICES_INSTALL_DIR} )
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
|