project(kioslave-nepomuk-timeline)

include_directories(
  ${QT_INCLUDES}
  ${KDE4_INCLUDES}
  ${KDE4_KIO_INCLUDES}
  ${NEPOMUK_INCLUDE_DIR}
  ${nepomuk_kio_slaves_SOURCE_DIR}/common
)

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

set(kio_timeline_PART_SRCS
  kio_timeline.cpp
  ../common/timelinetools.cpp)

soprano_add_ontology(kio_timeline_PART_SRCS
  ${SHAREDDESKTOPONTOLOGIES_ROOT_DIR}/nie/nfo.trig
  "NFO"
  "Nepomuk::Vocabulary"
  "trig")
soprano_add_ontology(kio_timeline_PART_SRCS
  ${SHAREDDESKTOPONTOLOGIES_ROOT_DIR}/nie/nie.trig
  "NIE"
  "Nepomuk::Vocabulary"
  "trig")
soprano_add_ontology(kio_timeline_PART_SRCS
  ${SHAREDDESKTOPONTOLOGIES_ROOT_DIR}/nepomuk/nuao.trig
  "NUAO"
  "Nepomuk::Vocabulary"
  "trig")

kde4_add_plugin(kio_timeline ${kio_timeline_PART_SRCS})

target_link_libraries(kio_timeline
  ${KDE4_KIO_LIBS}
  ${NEPOMUK_LIBRARIES}
  ${SOPRANO_LIBRARIES}
)

install(TARGETS kio_timeline  DESTINATION ${PLUGIN_INSTALL_DIR})


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

install( FILES timeline.protocol  DESTINATION  ${SERVICES_INSTALL_DIR})
