2006-05-12 00:08:30 +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-01-30 23:51:42 +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-01-30 23:51:42 +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})
|
|
|
|
|
2006-03-22 16:57:17 +00:00
|
|
|
target_link_libraries(kdeinit_kwin_rules_dialog ${KDE4_KDEUI_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-01-30 23:51:42 +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-01-30 23:51:42 +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-01-30 23:51:42 +00:00
|
|
|
kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kcm_kwinrules )
|
2006-02-28 08:01:15 +00:00
|
|
|
|
2006-03-22 16:57:17 +00:00
|
|
|
target_link_libraries(kcm_kwinrules ${KDE4_KDEUI_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-01-30 23:51:42 +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
|
|
|
|
|
|
|
|
2007-01-30 23:51:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
#original Makefile.am contents follow:
|
|
|
|
|
|
|
|
#METASOURCES = AUTO
|
|
|
|
#AM_CPPFLAGS = $(all_includes) -DKCMRULES
|
|
|
|
#INCLUDES = -I$(top_srcdir)/workspace/kwin/lib
|
|
|
|
#
|
|
|
|
#bin_PROGRAMS =
|
|
|
|
#lib_LTLIBRARIES =
|
|
|
|
#kdeinit_LTLIBRARIES = kwin_rules_dialog.la
|
|
|
|
#kde_module_LTLIBRARIES = kcm_kwinrules.la
|
|
|
|
#noinst_LTLIBRARIES = libkwinrules.la
|
|
|
|
#
|
|
|
|
#libkwinrules_la_SOURCES = ruleswidget.cpp ruleslist.cpp kwinsrc.cpp detectwidget.cpp \
|
|
|
|
# ruleswidgetbase.ui ruleslistbase.ui detectwidgetbase.ui editshortcutbase.ui
|
|
|
|
#libkwinrules_la_LDFLAGS = $(all_libraries) -no-undefined
|
|
|
|
#libkwinrules_la_LIBADD = $(LIB_KDEUI)
|
|
|
|
#
|
|
|
|
#kcm_kwinrules_la_SOURCES = kcm.cpp
|
|
|
|
#kcm_kwinrules_la_LDFLAGS = -module -avoid-version $(all_libraries) -no-undefined
|
|
|
|
#kcm_kwinrules_la_LIBADD = libkwinrules.la
|
|
|
|
#kcm_kwinrules_la_COMPILE_FIRST = ruleslistbase.h ruleswidgetbase.h
|
|
|
|
#
|
|
|
|
#kwin_rules_dialog_la_SOURCES = main.cpp
|
|
|
|
#kwin_rules_dialog_la_LDFLAGS = -module -avoid-version $(all_libraries) -no-undefined
|
|
|
|
#kwin_rules_dialog_la_LIBADD = libkwinrules.la
|
|
|
|
#kwin_rules_dialog_la_COMPILE_FIRST = ruleslistbase.h ruleswidgetbase.h
|
|
|
|
#
|
|
|
|
#messages: rc.cpp
|
|
|
|
# $(XGETTEXT) *.cpp -o $(podir)/kcmkwinrules.pot
|
|
|
|
#
|
|
|
|
#xdg_apps_DATA = kwinrules.desktop
|