diff options
Diffstat (limited to 'examples/imapresource/tests/CMakeLists.txt')
-rw-r--r-- | examples/imapresource/tests/CMakeLists.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/imapresource/tests/CMakeLists.txt b/examples/imapresource/tests/CMakeLists.txt new file mode 100644 index 0000000..cdd5fcb --- /dev/null +++ b/examples/imapresource/tests/CMakeLists.txt | |||
@@ -0,0 +1,21 @@ | |||
1 | set(CMAKE_AUTOMOC ON) | ||
2 | include_directories( | ||
3 | ${CMAKE_CURRENT_BINARY_DIR} | ||
4 | ) | ||
5 | |||
6 | macro(auto_tests) | ||
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 | |||
16 | auto_tests ( | ||
17 | imapresourcetest | ||
18 | ) | ||
19 | target_link_libraries(imapresourcetest sink_resource_imap) | ||
20 | |||
21 | install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/resetmailbox.sh DESTINATION bin PERMISSIONS OWNER_EXECUTE OWNER_WRITE OWNER_READ GROUP_EXECUTE GROUP_READ) | ||