1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
include_directories(${CMAKE_CURRENT_BINARY_DIR})
add_definitions(-DTEST_DATA_PATH="${CMAKE_CURRENT_SOURCE_DIR}")
macro(addTest TEST_NAME)
add_executable(${TEST_NAME} ${TEST_NAME}.cpp ${TEST_NAME}.h)
target_link_libraries(${TEST_NAME} Qt::Test kolab_static)
add_test(${TEST_NAME} ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${TEST_NAME})
endmacro()
add_executable(benchmarktest benchmark.cpp benchmark.h)
target_link_libraries(benchmarktest ${QT_QTTEST_LIBRARY} kolab_static)
# addTest(formattest) failing
# addTest(upgradetest) failing
# addTest(kcalconversiontest) failing
# addTest(calendaringtest) failing
addTest(icalendartest)
addTest(freebusytest)
# addTest(kolabobjecttest) failing
# addTest(timezonetest) failing
addTest(mimeobjecttest)
# addTest(xmlobjecttest) failing
addTest(debugstreamtest)
addTest(legacyformattest)
|