2007-04-19 11:52:53 +00:00
|
|
|
include_directories(
|
2007-04-21 12:26:18 +00:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../../lib # KWin library dir
|
|
|
|
${CMAKE_CURRENT_BINARY_DIR}/../../ # main KWin dir
|
2007-04-19 11:52:53 +00:00
|
|
|
)
|
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-19 11:52:53 +00:00
|
|
|
kde4_add_ui3_files(kwinrules_SRCS ruleswidgetbase.ui ruleslistbase.ui detectwidgetbase.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-19 11:52:53 +00:00
|
|
|
kde4_automoc(kwin_rules_dialog ${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-19 11:52:53 +00:00
|
|
|
target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} )
|
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-19 11:52:53 +00:00
|
|
|
install(TARGETS kwin_rules_dialog DESTINATION bin)
|
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-19 11:52:53 +00:00
|
|
|
kde4_automoc(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
|
2006-02-28 08:01:15 +00:00
|
|
|
|
|
|
|
kde4_add_plugin(kcm_kwinrules ${kcm_kwinrules_PART_SRCS})
|
|
|
|
|
2007-04-19 11:52:53 +00:00
|
|
|
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_kwinrules )
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2007-04-19 11:52:53 +00:00
|
|
|
target_link_libraries(kcm_kwinrules ${KDE4_KDEUI_LIBS} ${KDE4_KDE3SUPPORT_LIBS} )
|
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
|
|
|
|
|
|
|
|
2007-04-19 11:52:53 +00:00
|
|
|
########### next target ###############
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|