
add_subdirectory( schemas ) 

include_directories( ${CMAKE_SOURCE_DIR}/noatun/library  )


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

set(noatun_oblique_PART_SRCS 
   base.cpp 
   kbuffer.cpp 
   query.cpp 
   oblique.cpp 
   tree.cpp 
   file.cpp 
   selector.cpp 
   menu.cpp 
   cmodule.cpp 
   kdatacollection.cpp 
   view.cpp )


kde4_add_plugin(noatun_oblique ${noatun_oblique_PART_SRCS})



target_link_libraries(noatun_oblique  ${KDE4_KDECORE_LIBS} ${KDE4_KIO_LIBS} noatun )

install(TARGETS noatun_oblique  DESTINATION ${PLUGIN_INSTALL_DIR} )


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

install( FILES oblique.plugin  DESTINATION  ${DATA_INSTALL_DIR}/noatun )
install( FILES obliqueui.rc  DESTINATION  ${DATA_INSTALL_DIR}/noatun )




#original Makefile.am contents follow:

#SUBDIRS = . schemas
#
#INCLUDES= -I$(top_srcdir)/noatun/library $(all_includes)
#kde_module_LTLIBRARIES = noatun_oblique.la
#
#noatun_oblique_la_SOURCES = base.cpp kbuffer.cpp query.cpp oblique.cpp tree.cpp file.cpp selector.cpp menu.cpp cmodule.cpp kdatacollection.cpp view.cpp
#
#noatun_oblique_la_LDFLAGS = $(all_libraries) -module -avoid-version -no-undefined
#noatun_oblique_la_LIBADD = $(LIB_KIO) -lnoatun $(BERKELEY_DB_LIBS)
#
#noatun_oblique_la_METASOURCES = AUTO
#
#noatundata_DATA = oblique.plugin
#noatundatadir = $(kde_datadir)/noatun
#
#rc_DATA = obliqueui.rc
#rcdir = $(kde_datadir)/noatun
#
