CMakeLists.txt 736 Bytes
Newer Older
1
2
3
4
function(add_unit_tests)
    foreach(test ${ARGN})
        add_executable(${test} ${test}.cpp)
        add_test( ${test} ${test} )
5
        target_link_libraries(${test} Qt5::Test KF5::Cddb)
6
7
8
        target_include_directories(${test}
            PRIVATE ${CMAKE_SOURCE_DIR} # for libkcddb/ prefixed includes of library headers
        )
9
10
    endforeach()
endfunction()
11

12
add_unit_tests(
13
14
15
16
17
18
19
20
    asynchttplookuptest
    asynccddblookuptest
    synccddblookuptest
    synchttplookuptest
    utf8test
    musicbrainztest
    asyncmusicbrainztest
    cdinfotest
21
    cachetest
22
    musicbrainztest-severaldiscs
23
    musicbrainztest-fulldate
24
25
26
27
    syncsmtpsubmittest
    asyncsmtpsubmittest
    asynchttpsubmittest
    synchttpsubmittest
28
    sitestest)