summaryrefslogtreecommitdiffstats
path: root/examples/imapresource/tests/CMakeLists.txt
blob: 84827201eb6d174bedea5c98760771b5ceeafce0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set(CMAKE_AUTOMOC ON)
include_directories(
    ${CMAKE_CURRENT_BINARY_DIR}
    )

macro(auto_tests)
    foreach(_testname ${ARGN})
        add_executable(${_testname} ${_testname}.cpp)
        # generate_flatbuffers(${_testname} calendar)
        add_test(${_testname} ${_testname})
        qt5_use_modules(${_testname} Core Test Concurrent)
        target_link_libraries(${_testname} sink libhawd)
    endforeach(_testname)
endmacro(auto_tests)

auto_tests (
    imapresourcetest
    imapserverproxytest
)
target_link_libraries(imapresourcetest sink_resource_imap)
target_link_libraries(imapserverproxytest sink_resource_imap)

install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resetmailbox.sh DESTINATION bin PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ)