set( EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_BINARY_DIR} )

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

# The basis of all the tests handling statements
kde4_add_library(testbase_backbone STATIC testbase.cpp)
target_link_libraries(testbase_backbone
  ${NEPOMUK_LIBRARIES}
  ${KDE4_KDECORE_LIBRARY}
  ${SOPRANO_LIBRARIES}
  ${QT_QTCORE_LIBRARY}
  ${QT_QTTEST_LIBRARY}
)

# tests
kde4_add_unit_test(rdfrepositorytest rdfrepositorytest.cpp)
target_link_libraries(rdfrepositorytest testbase_backbone)

kde4_add_unit_test(statementiteratortest statementiteratortest.cpp)
target_link_libraries(statementiteratortest testbase_backbone)
