
project(kioslave-print)

add_definitions(-D_KDEPRINT_COMPILE)
add_subdirectory( mimetypes ) 
add_subdirectory( templates ) 



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

set(kio_print_PART_SRCS kio_print.cpp )

kde4_automoc(${kio_print_PART_SRCS})

kde4_add_plugin(kio_print ${kio_print_PART_SRCS})

kde4_install_libtool_file( ${PLUGIN_INSTALL_DIR} kio_print )

target_link_libraries(kio_print  ${KDE4_KIO_LIBS} ${KDE4_KDEPRINT_LIBS} ${QT_QT3SUPPORT_LIBRARY} ${QT_QTXML_LIBRARY})

install(TARGETS kio_print  DESTINATION ${PLUGIN_INSTALL_DIR} )


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

install( FILES print.protocol printdb.protocol  DESTINATION  ${SERVICES_INSTALL_DIR} )




#original Makefile.am contents follow:

#AM_CPPFLAGS = -D_KDEPRINT_COMPILE
#
#SUBDIRS = mimetypes templates
#
#INCLUDES= $(all_includes)
#
#kde_module_LTLIBRARIES = kio_print.la
#
#kio_print_la_SOURCES = kio_print.cpp
#kio_print_la_LIBADD = $(LIB_KIO) -lkdeprint
#kio_print_la_LDFLAGS = $(all_libraries) -module $(KDE_PLUGIN)
#
#METASOURCES = AUTO
#
#noinst_HEADERS = kio_print.h
#
## Services
#servicesdir = $(kde_servicesdir)
#services_DATA = print.protocol printdb.protocol
#
#messages: rc.cpp
#	$(XGETTEXT) *.cpp -o $(podir)/kio_print.pot
