include_directories(.. ../../indexertests)
link_directories(${EST_LIBDIR})

CREATE_TEST_SOURCELIST(Tests testrunner.cpp EstraierTest.cpp)

ADD_EXECUTABLE(testrunner ${Tests} )
target_link_libraries(testrunner streams indexertests)

SET (TestsToRun ${Tests})
REMOVE (TestsToRun testrunner.cpp)

FOREACH (test ${TestsToRun})
  GET_FILENAME_COMPONENT(TName ${test} NAME_WE)
  ADD_TEST(${TName} testrunner-estraier ${TName} ${strigi_SOURCE_DIR}/testdata/data)
ENDFOREACH (test)

