summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--common/CMakeLists.txt2
-rw-r--r--common/test/CMakeLists.txt15
-rw-r--r--tests/CMakeLists.txt1
-rw-r--r--tests/clientapitest.cpp (renamed from common/test/clientapitest.cpp)6
4 files changed, 4 insertions, 20 deletions
diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt
index a97c7f9..ce237c5 100644
--- a/common/CMakeLists.txt
+++ b/common/CMakeLists.txt
@@ -46,5 +46,3 @@ SET_TARGET_PROPERTIES(${PROJECT_NAME} PROPERTIES LINKER_LANGUAGE CXX)
46qt5_use_modules(${PROJECT_NAME} Widgets Network) 46qt5_use_modules(${PROJECT_NAME} Widgets Network)
47target_link_libraries(${PROJECT_NAME} ${storage_LIBS} akonadi2async) 47target_link_libraries(${PROJECT_NAME} ${storage_LIBS} akonadi2async)
48install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) 48install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS})
49
50add_subdirectory(test)
diff --git a/common/test/CMakeLists.txt b/common/test/CMakeLists.txt
deleted file mode 100644
index 98d4ecc..0000000
--- a/common/test/CMakeLists.txt
+++ /dev/null
@@ -1,15 +0,0 @@
1set(CMAKE_AUTOMOC ON)
2include_directories(${CMAKE_CURRENT_BINARY_DIR})
3
4macro(auto_tests)
5 foreach(_testname ${ARGN})
6 add_executable(${_testname} ${_testname}.cpp ${store_SRCS})
7 qt5_use_modules(${_testname} Core Test)
8 target_link_libraries(${_testname} akonadi2common)
9 add_test(NAME ${_testname} COMMAND ${_testname})
10 endforeach(_testname)
11endmacro(auto_tests)
12
13auto_tests (
14 clientapitest
15)
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt
index d3e6870..24912f5 100644
--- a/tests/CMakeLists.txt
+++ b/tests/CMakeLists.txt
@@ -29,6 +29,7 @@ manual_tests (
29) 29)
30 30
31auto_tests ( 31auto_tests (
32 clientapitest
32 storagetest 33 storagetest
33 dummyresourcetest 34 dummyresourcetest
34 domainadaptortest 35 domainadaptortest
diff --git a/common/test/clientapitest.cpp b/tests/clientapitest.cpp
index 789c656..7bcd7b0 100644
--- a/common/test/clientapitest.cpp
+++ b/tests/clientapitest.cpp
@@ -2,9 +2,9 @@
2#include <QDebug> 2#include <QDebug>
3#include <functional> 3#include <functional>
4 4
5#include "../clientapi.h" 5#include "clientapi.h"
6#include "../facade.h" 6#include "facade.h"
7#include "../synclistresult.h" 7#include "synclistresult.h"
8 8
9class RevisionNotifier : public QObject 9class RevisionNotifier : public QObject
10{ 10{