



########### next target ###############

set(kpf_panelapplet_PART_SRCS 
   Utils.cpp 
   DirectoryLister.cpp 
   ByteRange.cpp 
   DirSelectWidget.cpp 
   PortValidator.cpp 
   Request.cpp 
   Response.cpp 
   Resource.cpp 
   RootValidator.cpp 
   Server.cpp 
   ServerPrivate.cpp 
   ServerSocket.cpp 
   WebServer.cpp 
   WebServerSocket.cpp 
   WebServerManager.cpp 
   SingleServerConfigDialog.cpp 
   System.cpp 
   ConfigDialogPage.cpp 
   ErrorMessageConfigDialog.cpp 
   ActiveMonitor.cpp 
   ActiveMonitorItem.cpp 
   ActiveMonitorWindow.cpp 
   BandwidthGraph.cpp 
   ServerWizard.cpp 
   AppletItem.cpp 
   Applet.cpp 
   Defaults.cpp 
   Help.cpp )

kde4_automoc(${kpf_panelapplet_PART_SRCS})

kde4_add_dcop_skels(kpf_panelapplet_PART_SRCS WebServer.h WebServerManager.h )

kde4_add_dcop_stubs(kpf_panelapplet_PART_SRCS WebServer.h )

kde4_add_plugin(kpf_panelapplet ${kpf_panelapplet_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kpf_panelapplet )

target_link_libraries(kpf_panelapplet  ${KDE4_KDE3SUPPORT_LIBS} ${QT_QTNETWORK_LIBRARY} ${KDE4_KDNSSD_LIBS} kickermain )

install(TARGETS kpf_panelapplet  DESTINATION ${PLUGIN_INSTALL_DIR})


########### next target ###############

set(kpfpropertiesdialog_PART_SRCS 
   PropertiesDialogPlugin.cpp 
   StartingKPFDialog.cpp 
   Defaults.cpp 
   Help.cpp )

kde4_automoc(${kpfpropertiesdialog_PART_SRCS})

kde4_add_dcop_stubs(kpfpropertiesdialog_PART_SRCS WebServer.h WebServerManager.h )

kde4_add_plugin(kpfpropertiesdialog ${kpfpropertiesdialog_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kpfpropertiesdialog )

target_link_libraries(kpfpropertiesdialog  ${KDE4_KDE3SUPPORT_LIBS} ${KDE4_KDNSSD_LIBS} )

install(TARGETS kpfpropertiesdialog  DESTINATION ${PLUGIN_INSTALL_DIR})


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





#original Makefile.am contents follow:

#INCLUDES = $(all_includes)
#
#METASOURCES = AUTO
#
#kde_module_LTLIBRARIES = kpf_panelapplet.la kpfpropertiesdialog.la
#
#kpf_panelapplet_la_SOURCES = \
#  Utils.cpp \
#  DirectoryLister.cpp \
#  ByteRange.cpp \
#  DirSelectWidget.cpp \
#  PortValidator.cpp \
#  Request.cpp \
#  Response.cpp \
#  Resource.cpp \
#  RootValidator.cpp \
#  Server.cpp \
#  ServerPrivate.cpp \
#  ServerSocket.cpp \
#  WebServer.cpp \
#  WebServer.skel \
#  WebServer.stub \
#  WebServerSocket.cpp \
#  WebServerManager.cpp \
#  WebServerManager.skel \
#  SingleServerConfigDialog.cpp \
#  System.cpp \
#  ConfigDialogPage.cpp \
#  ErrorMessageConfigDialog.cpp \
#  ActiveMonitor.cpp \
#  ActiveMonitorItem.cpp \
#  ActiveMonitorWindow.cpp \
#  BandwidthGraph.cpp \
#  ServerWizard.cpp \
#  AppletItem.cpp \
#  Applet.cpp \
#  Defaults.cpp \
#  Help.cpp
#
#kpf_panelapplet_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
#
#kpf_panelapplet_la_LIBADD = $(LIB_KIO) $(LIB_KDE3SUPPORT) -lkdnssd -lkickermain
#
#kpfpropertiesdialog_la_SOURCES = \
#  PropertiesDialogPlugin.cpp \
#  StartingKPFDialog.cpp \
#  WebServer.stub \
#  WebServerManager.stub \
#  Defaults.cpp \
#  Help.cpp
#
#kpfpropertiesdialog_la_LIBADD = $(LIB_KIO) -lkdnssd
#
#kpfpropertiesdialog_la_LDFLAGS = $(all_libraries) $(KDE_PLUGIN) -module
#
#noinst_HEADERS = \
#  Utils.h \
#  Defaults.h \
#  DirectoryLister.h \
#  DirSelectWidget.h \
#  ByteRange.h \
#  PortValidator.h \
#  Request.h \
#  Response.h \
#  Resource.h \
#  RootValidator.h \
#  Server.h \
#  ServerPrivate.h \
#  ServerSocket.h \
#  WebServer.h \
#  WebServerSocket.h \
#  WebServerManager.h \
#  SingleServerConfigDialog.h \
#  ConfigDialogPage.h \
#  PropertiesDialogPlugin.h \
#  StartingKPFDialog.h \
#  ErrorMessageConfigDialog.h \
#  ActiveMonitor.h \
#  ActiveMonitorItem.h \
#  ActiveMonitorWindow.h \
#  BandwidthGraph.h \
#  ServerWizard.h \
#  AppletItem.h \
#  Applet.h \
#  Help.h
#
#messages:
#	$(XGETTEXT) *.cpp -o $(podir)/kpf.pot
#
