diff options
-rw-r--r-- | common/CMakeLists.txt | 2 | ||||
-rw-r--r-- | common/test/CMakeLists.txt | 15 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 1 | ||||
-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) | |||
46 | qt5_use_modules(${PROJECT_NAME} Widgets Network) | 46 | qt5_use_modules(${PROJECT_NAME} Widgets Network) |
47 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} akonadi2async) | 47 | target_link_libraries(${PROJECT_NAME} ${storage_LIBS} akonadi2async) |
48 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 48 | install(TARGETS ${PROJECT_NAME} ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
49 | |||
50 | add_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 @@ | |||
1 | set(CMAKE_AUTOMOC ON) | ||
2 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) | ||
3 | |||
4 | macro(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) | ||
11 | endmacro(auto_tests) | ||
12 | |||
13 | auto_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 | ||
31 | auto_tests ( | 31 | auto_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 | ||
9 | class RevisionNotifier : public QObject | 9 | class RevisionNotifier : public QObject |
10 | { | 10 | { |