diff options
-rw-r--r-- | examples/caldavresource/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/carddavresource/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/imapresource/CMakeLists.txt | 6 | ||||
-rw-r--r-- | examples/maildirresource/CMakeLists.txt | 8 | ||||
-rw-r--r-- | examples/maildirresource/tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | examples/mailtransportresource/CMakeLists.txt | 6 | ||||
-rw-r--r-- | tests/CMakeLists.txt | 21 |
7 files changed, 41 insertions, 13 deletions
diff --git a/examples/caldavresource/CMakeLists.txt b/examples/caldavresource/CMakeLists.txt index 353f0d7..d2859aa 100644 --- a/examples/caldavresource/CMakeLists.txt +++ b/examples/caldavresource/CMakeLists.txt | |||
@@ -11,4 +11,8 @@ target_link_libraries(${PROJECT_NAME} sink_webdav_common sink Qt5::Core Qt5::Net | |||
11 | 11 | ||
12 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) | 12 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) |
13 | 13 | ||
14 | add_subdirectory(tests) | 14 | if (WIN32) |
15 | message("Not building caldavresource resource tests on windows") | ||
16 | else() | ||
17 | add_subdirectory(tests) | ||
18 | endif() | ||
diff --git a/examples/carddavresource/CMakeLists.txt b/examples/carddavresource/CMakeLists.txt index 0db0e1a..0632804 100644 --- a/examples/carddavresource/CMakeLists.txt +++ b/examples/carddavresource/CMakeLists.txt | |||
@@ -9,4 +9,8 @@ target_link_libraries(${PROJECT_NAME} sink_webdav_common sink Qt5::Core Qt5::Net | |||
9 | 9 | ||
10 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) | 10 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) |
11 | 11 | ||
12 | add_subdirectory(tests) | 12 | if (WIN32) |
13 | message("Not building carddav resource tests on windows") | ||
14 | else() | ||
15 | add_subdirectory(tests) | ||
16 | endif() | ||
diff --git a/examples/imapresource/CMakeLists.txt b/examples/imapresource/CMakeLists.txt index 61b86ed..478ce2f 100644 --- a/examples/imapresource/CMakeLists.txt +++ b/examples/imapresource/CMakeLists.txt | |||
@@ -12,4 +12,8 @@ target_link_libraries(${PROJECT_NAME} sink Qt5::Core Qt5::Network KF5::Mime KIMA | |||
12 | 12 | ||
13 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) | 13 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) |
14 | 14 | ||
15 | add_subdirectory(tests) | 15 | if (WIN32) |
16 | message("Not building imap resource tests on windows") | ||
17 | else() | ||
18 | add_subdirectory(tests) | ||
19 | endif() | ||
diff --git a/examples/maildirresource/CMakeLists.txt b/examples/maildirresource/CMakeLists.txt index 94910cb..1379363 100644 --- a/examples/maildirresource/CMakeLists.txt +++ b/examples/maildirresource/CMakeLists.txt | |||
@@ -9,6 +9,8 @@ target_link_libraries(${PROJECT_NAME} sink Qt5::Core Qt5::Network KF5::Mime) | |||
9 | 9 | ||
10 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) | 10 | install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) |
11 | 11 | ||
12 | add_definitions(-DTESTDATAPATH="${CMAKE_CURRENT_SOURCE_DIR}/tests/data") | 12 | if (WIN32) |
13 | 13 | message("Not building maildir resource tests on windows") | |
14 | add_subdirectory(tests) | 14 | else() |
15 | add_subdirectory(tests) | ||
16 | endif() | ||
diff --git a/examples/maildirresource/tests/CMakeLists.txt b/examples/maildirresource/tests/CMakeLists.txt index b3e4050..867b56d 100644 --- a/examples/maildirresource/tests/CMakeLists.txt +++ b/examples/maildirresource/tests/CMakeLists.txt | |||
@@ -2,6 +2,7 @@ set(CMAKE_AUTOMOC ON) | |||
2 | include_directories( | 2 | include_directories( |
3 | ${CMAKE_CURRENT_BINARY_DIR} | 3 | ${CMAKE_CURRENT_BINARY_DIR} |
4 | ) | 4 | ) |
5 | add_definitions(-DTESTDATAPATH="${CMAKE_CURRENT_SOURCE_DIR}/data") | ||
5 | 6 | ||
6 | include(SinkTest) | 7 | include(SinkTest) |
7 | 8 | ||
diff --git a/examples/mailtransportresource/CMakeLists.txt b/examples/mailtransportresource/CMakeLists.txt index fe2e77c..9619dbe 100644 --- a/examples/mailtransportresource/CMakeLists.txt +++ b/examples/mailtransportresource/CMakeLists.txt | |||
@@ -28,4 +28,8 @@ target_link_libraries(sink_smtp_test | |||
28 | ) | 28 | ) |
29 | install(TARGETS sink_smtp_test ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) | 29 | install(TARGETS sink_smtp_test ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) |
30 | 30 | ||
31 | add_subdirectory(tests) | 31 | if (WIN32) |
32 | message("Not building mailtransport resource tests on windows") | ||
33 | else() | ||
34 | add_subdirectory(tests) | ||
35 | endif() | ||
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 6cd46d9..2706d5b 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -31,10 +31,8 @@ include(SinkTest) | |||
31 | 31 | ||
32 | manual_tests ( | 32 | manual_tests ( |
33 | storagebenchmark | 33 | storagebenchmark |
34 | dummyresourcebenchmark | ||
35 | mailquerybenchmark | 34 | mailquerybenchmark |
36 | pipelinebenchmark | 35 | pipelinebenchmark |
37 | dummyresourcewritebenchmark | ||
38 | databasepopulationandfacadequerybenchmark | 36 | databasepopulationandfacadequerybenchmark |
39 | ) | 37 | ) |
40 | 38 | ||
@@ -42,7 +40,6 @@ auto_tests ( | |||
42 | clientapitest | 40 | clientapitest |
43 | resourceconfigtest | 41 | resourceconfigtest |
44 | storagetest | 42 | storagetest |
45 | dummyresourcetest | ||
46 | domainadaptortest | 43 | domainadaptortest |
47 | messagequeuetest | 44 | messagequeuetest |
48 | indextest | 45 | indextest |
@@ -59,7 +56,19 @@ auto_tests ( | |||
59 | entitystoretest | 56 | entitystoretest |
60 | upgradetest | 57 | upgradetest |
61 | ) | 58 | ) |
62 | target_link_libraries(dummyresourcetest sink_resource_dummy) | 59 | |
63 | target_link_libraries(dummyresourcebenchmark sink_resource_dummy) | 60 | if (WIN32) |
64 | target_link_libraries(dummyresourcewritebenchmark sink_resource_dummy) | 61 | message("Not building dumm resource tests on windows") |
62 | else() | ||
63 | manual_tests ( | ||
64 | dummyresourcebenchmark | ||
65 | dummyresourcewritebenchmark | ||
66 | ) | ||
67 | auto_tests ( | ||
68 | dummyresourcetest | ||
69 | ) | ||
70 | target_link_libraries(dummyresourcetest sink_resource_dummy) | ||
71 | target_link_libraries(dummyresourcebenchmark sink_resource_dummy) | ||
72 | target_link_libraries(dummyresourcewritebenchmark sink_resource_dummy) | ||
73 | endif() | ||
65 | 74 | ||