diff options
| author | Danilo M. <danix@danix.xyz> | 2026-08-02 16:57:12 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-08-04 12:52:13 +0200 |
| commit | d217d976ccdc439803003a26252904ca8abdd520 (patch) | |
| tree | 3045be3f9bfbc87e52fe07965704074c53f6083b /tests/CMakeLists.txt | |
| parent | 0af917701973b67d7b7bf5e9ef37304040530015 (diff) | |
| download | qtmaildir-d217d976ccdc439803003a26252904ca8abdd520.tar.gz qtmaildir-d217d976ccdc439803003a26252904ca8abdd520.zip | |
build: add CMake skeleton and dependency discovery
Diffstat (limited to 'tests/CMakeLists.txt')
| -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() |
