


set (CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}  ${KDE4_ENABLE_EXCEPTIONS}")
########### next target ###############

set(domtreeviewerplugin_PART_SRCS 
   plugin_domtreeviewer.cpp 
   domtreeview.cpp 
   domlistviewitem.cpp 
   domtreewindow.cpp 
   domtreecommands.cpp 
   signalreceiver.cpp )

kde4_add_ui_files(domtreeviewerplugin_PART_SRCS domtreeviewbase.ui texteditdialog.ui elementeditdialog.ui attributeeditdialog.ui)

kde4_add_ui3_files(domtreeviewerplugin_PART_SRCS messagedialog.ui)

kde4_add_plugin(domtreeviewerplugin WITH_PREFIX ${domtreeviewerplugin_PART_SRCS})



target_link_libraries(domtreeviewerplugin  ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KHTML_LIBS} )

install(TARGETS domtreeviewerplugin  DESTINATION ${PLUGIN_INSTALL_DIR} )


########### install files ###############

install( FILES plugin_domtreeviewer.rc plugin_domtreeviewer.desktop  DESTINATION  ${DATA_INSTALL_DIR}/khtml/kpartplugins )
install( FILES domtreeviewerui.rc  DESTINATION  ${DATA_INSTALL_DIR}/domtreeviewer )





#original Makefile.am contents follow:

#INCLUDES    = $(all_includes)
#
## Needed to catch DOM exceptions
#KDE_CXXFLAGS = $(USE_EXCEPTIONS)
## -DKListView=DOMListView
#
## Install this plugin in the KDE modules directory
#kde_module_LTLIBRARIES = libdomtreeviewerplugin.la
#
#libdomtreeviewerplugin_la_SOURCES = 	plugin_domtreeviewer.cpp \
#					domtreeview.cpp \
#					domlistviewitem.cpp \
#					domtreewindow.cpp \
#					domtreecommands.cpp \
#					signalreceiver.cpp \
#					domtreeviewbase.ui \
#					attributeeditdialog.ui \
#					elementeditdialog.ui \
#					texteditdialog.ui \
#					messagedialog.ui
##					klistview.cpp \
##
#libdomtreeviewerplugin_la_LIBADD  = $(LIB_KPARTS) $(LIB_KHTML)
#libdomtreeviewerplugin_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
#
#pluginsdir   = $(kde_datadir)/khtml/kpartplugins
#plugins_DATA = plugin_domtreeviewer.rc plugin_domtreeviewer.desktop
#
#install-data-local: $(srcdir)/../uninstall.desktop
#	$(mkinstalldirs) $(DESTDIR)$(pluginsdir)
#	$(INSTALL_DATA) $(srcdir)/../uninstall.desktop $(DESTDIR)$(pluginsdir)/domtreeviewerplugin.desktop
#
#METASOURCES = AUTO
#KDE_ICON = domtreeviewer
#
#pluginsdatadir = $(kde_datadir)/domtreeviewer
#pluginsdata_DATA = domtreeviewerui.rc
#
#messages: rc.cpp
#	$(XGETTEXT) *.cpp *.h -o $(podir)/domtreeviewer.pot
#
