diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-02 16:57:12 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-02 16:57:12 +0200 |
| commit | 059fa151856293a8b6bdf9b16d1b72f415f59df3 (patch) | |
| tree | 47c62980e0f91703c14592790552dfaeb806252e /tests | |
| parent | 7a2f8ad2728d6eb5dcd0c0fc249e1b3f0f6f069a (diff) | |
| download | qtmaildir-059fa151856293a8b6bdf9b16d1b72f415f59df3.tar.gz qtmaildir-059fa151856293a8b6bdf9b16d1b72f415f59df3.zip | |
build: add CMake skeleton and dependency discovery
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt new file mode 100644 index 0000000..3344d4a --- /dev/null +++ b/tests/CMakeLists.txt @@ -0,0 +1,6 @@ +# add_qtmaildir_test(<name>) builds tests/test_<name>.cpp and registers it. +function(add_qtmaildir_test name) + add_executable(test_${name} test_${name}.cpp) + target_link_libraries(test_${name} PRIVATE qtmaildir_lib Qt6::Test) + add_test(NAME ${name} COMMAND test_${name}) +endfunction() |
