summaryrefslogtreecommitdiffstats
path: root/common/test/CMakeLists.txt
blob: 98d4ecc7de86cbd667b88fd474a95f4cea1ecacc (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} akonadi2common)
        add_test(NAME ${_testname} COMMAND ${_testname})
    endforeach(_testname)
endmacro(auto_tests)

auto_tests (
    clientapitest
)