aboutsummaryrefslogtreecommitdiffstats
path: root/tests/CMakeLists.txt
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-08-02 16:57:12 +0200
committerDanilo M. <danix@danix.xyz>2026-08-02 16:57:12 +0200
commit059fa151856293a8b6bdf9b16d1b72f415f59df3 (patch)
tree47c62980e0f91703c14592790552dfaeb806252e /tests/CMakeLists.txt
parent7a2f8ad2728d6eb5dcd0c0fc249e1b3f0f6f069a (diff)
downloadqtmaildir-059fa151856293a8b6bdf9b16d1b72f415f59df3.tar.gz
qtmaildir-059fa151856293a8b6bdf9b16d1b72f415f59df3.zip
build: add CMake skeleton and dependency discovery
Diffstat (limited to 'tests/CMakeLists.txt')
-rw-r--r--tests/CMakeLists.txt6
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()