diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 09:30:20 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-24 09:30:20 +0200 |
commit | b23948efa2484ac1a37afdb0d077296f6c7f7e0f (patch) | |
tree | 38ffe9c12a26810547a8069245a8eb2906b35956 /examples/imapresource/tests | |
parent | 6434a87199b3259e9002570332beaa8caf5d2213 (diff) | |
download | sink-b23948efa2484ac1a37afdb0d077296f6c7f7e0f.tar.gz sink-b23948efa2484ac1a37afdb0d077296f6c7f7e0f.zip |
Shared test macros
Diffstat (limited to 'examples/imapresource/tests')
-rw-r--r-- | examples/imapresource/tests/CMakeLists.txt | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/examples/imapresource/tests/CMakeLists.txt b/examples/imapresource/tests/CMakeLists.txt index b10adcd..0604b91 100644 --- a/examples/imapresource/tests/CMakeLists.txt +++ b/examples/imapresource/tests/CMakeLists.txt | |||
@@ -1,17 +1,9 @@ | |||
1 | set(CMAKE_AUTOMOC ON) | 1 | set(CMAKE_AUTOMOC ON) |
2 | include_directories( | 2 | include_directories( |
3 | ${CMAKE_CURRENT_BINARY_DIR} | 3 | ${CMAKE_CURRENT_BINARY_DIR} |
4 | ) | 4 | ) |
5 | 5 | ||
6 | macro(auto_tests) | 6 | include(SinkTest) |
7 | foreach(_testname ${ARGN}) | ||
8 | add_executable(${_testname} ${_testname}.cpp) | ||
9 | # generate_flatbuffers(${_testname} calendar) | ||
10 | add_test(${_testname} ${_testname}) | ||
11 | qt5_use_modules(${_testname} Core Test Concurrent) | ||
12 | target_link_libraries(${_testname} sink libhawd) | ||
13 | endforeach(_testname) | ||
14 | endmacro(auto_tests) | ||
15 | 7 | ||
16 | auto_tests ( | 8 | auto_tests ( |
17 | imapresourcetest | 9 | imapresourcetest |
@@ -20,6 +12,6 @@ auto_tests ( | |||
20 | ) | 12 | ) |
21 | target_link_libraries(imapresourcetest sink_resource_imap) | 13 | target_link_libraries(imapresourcetest sink_resource_imap) |
22 | target_link_libraries(imapserverproxytest sink_resource_imap) | 14 | target_link_libraries(imapserverproxytest sink_resource_imap) |
23 | target_link_libraries(imapmailtest sink_test sink_resource_imap) | 15 | target_link_libraries(imapmailtest sink_resource_imap) |
24 | 16 | ||
25 | install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resetmailbox.sh DESTINATION bin PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ) | 17 | install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resetmailbox.sh DESTINATION bin PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ) |