include_directories( ${CMAKE_SOURCE_DIR}/runtime/kioslave/media/libmediacommon/ )


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

set(kded_medianotifier_PART_SRCS medianotifier.cpp ../mediamanageriface.cpp notificationdialog.cpp ${libmediacommon_SRCS} )

kde4_add_kcfg_files(kded_medianotifier_PART_SRCS ../libmediacommon/mediamanagersettings.kcfgc )

kde4_automoc(${kded_medianotifier_PART_SRCS})

kde4_add_ui3_files(kded_medianotifier_PART_SRCS notificationdialogview.ui )

kde4_add_plugin(kded_medianotifier ${kded_medianotifier_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kded_medianotifier )

target_link_libraries(kded_medianotifier  ${KDE4_KIO_LIBS}  )

install(TARGETS kded_medianotifier  DESTINATION ${PLUGIN_INSTALL_DIR} )


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

install( FILES medianotifier.desktop  DESTINATION  ${SERVICES_INSTALL_DIR}/kded )




#original Makefile.am contents follow:

#INCLUDES = -I$(srcdir)/../libmediacommon -I../libmediacommon $(all_includes)
#
#kde_module_LTLIBRARIES = kded_medianotifier.la
#kded_medianotifier_la_LDFLAGS = -module -avoid-version $(all_libraries)
#kded_medianotifier_la_LIBADD = ../libmediacommon/libmediacommon.la $(LIB_KDECORE) \
#                               $(LIB_KDEUI) $(LIB_KIO)
#kded_medianotifier_la_SOURCES = medianotifier.cpp medianotifier.skel \
#                                notificationdialog.cpp notificationdialogview.ui
#
#noinst_HEADERS = medianotifier.h notificationdialog.h
#
#METASOURCES = AUTO
#
#services_DATA = medianotifier.desktop
#servicesdir = $(kde_servicesdir)/kded
#
#messages: rc.cpp
#	$(XGETTEXT) *.cpp -o $(podir)/kay.pot
