summaryrefslogtreecommitdiffstats
path: root/client/test/CMakeLists.txt
blob: 0d5da1bb6285024b50d29a699dfc7d0bb5782ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
set(CMAKE_AUTOMOC ON)
include_directories(${CMAKE_CURRENT_BINARY_DIR})

macro(auto_tests)
    foreach(_testname ${ARGN})
        add_executable(${_testname} ${_testname}.cpp ${store_SRCS})
        qt5_use_modules(${_testname} Core Test)
        target_link_libraries(${_testname} lmdb akonadi2_client_lib)
        add_test(NAME ${_testname} COMMAND ${_testname})
    endforeach(_testname)
endmacro(auto_tests)

auto_tests (
    clientapitest
)