summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt2
-rw-r--r--tests/CMakeLists.txt14
2 files changed, 15 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 97c4466..361c5a9 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -42,6 +42,8 @@ include_directories(SYSTEM ${CMAKE_SOURCE_DIR}/common)
42 42
43configure_file(hawd.conf hawd.conf) 43configure_file(hawd.conf hawd.conf)
44 44
45enable_testing()
46
45set(AKONADI2_RESOURCE_PLUGINS_PATH ${QT_PLUGIN_INSTALL_DIR}/akonadi2/resources) 47set(AKONADI2_RESOURCE_PLUGINS_PATH ${QT_PLUGIN_INSTALL_DIR}/akonadi2/resources)
46 48
47# common, eventually a lib but right now just the command buffers 49# common, eventually a lib but right now just the command buffers
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index a38471f..d3e6870 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -14,14 +14,26 @@ macro(manual_tests)
14 endforeach(_testname) 14 endforeach(_testname)
15endmacro(manual_tests) 15endmacro(manual_tests)
16 16
17macro(auto_tests)
18 foreach(_testname ${ARGN})
19 add_executable(${_testname} ${_testname}.cpp)
20 add_test(${_testname} ${_testname})
21 qt5_use_modules(${_testname} Core Test Concurrent)
22 target_link_libraries(${_testname} akonadi2common libhawd)
23 endforeach(_testname)
24endmacro(auto_tests)
25
17manual_tests ( 26manual_tests (
18 storagebenchmark 27 storagebenchmark
28 dummyresourcebenchmark
29)
30
31auto_tests (
19 storagetest 32 storagetest
20 dummyresourcetest 33 dummyresourcetest
21 domainadaptortest 34 domainadaptortest
22 messagequeuetest 35 messagequeuetest
23 indextest 36 indextest
24 dummyresourcebenchmark
25) 37)
26 38
27target_link_libraries(dummyresourcetest akonadi2_resource_dummy) 39target_link_libraries(dummyresourcetest akonadi2_resource_dummy)