
include_directories(
  ${QT_INCLUDES}
  ${KDE4_INCLUDES}
  ${SOPRANO_INCLUDE_DIR}
  ${CMAKE_SOURCE_DIR}
  ${NEPOMUK_INCLUDES}
)

set( SRCS
  cache.cpp
  uniqueurigenerator.cpp
  querydefinition.cpp     	
  sopranordfrepository.cpp
  coreservices.cpp
  dbusinterface.cpp
  repository.cpp
)

kde4_add_executable(nepomukcoreservices ${SRCS} main.cpp)

# FIXME: make the sopran index optional

target_link_libraries(nepomukcoreservices
  ${NEPOMUK_LIBRARIES}
  ${SOPRANO_LIBRARIES}
  ${SOPRANO_INDEX_LIBRARIES}
  sopranoserver
  ${QT_QTCORE_LIBRARY}
  ${QT_QTDBUS_LIBRARY}
  ${KDE4_KDECORE_LIBS}
  ${KDE4_KIO_LIBS}
)

configure_file(org.kde.nepomuk.DataRepository.service.cmake 
  ${CMAKE_CURRENT_BINARY_DIR}/org.kde.nepomuk.DataRepository.service)

install(FILES ${CMAKE_CURRENT_BINARY_DIR}/org.kde.nepomuk.DataRepository.service
  DESTINATION ${DBUS_SERVICES_INSTALL_DIR})

install(TARGETS nepomukcoreservices DESTINATION ${BIN_INSTALL_DIR} )
