diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-28 14:27:42 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-05-28 14:27:42 +0200 |
commit | f4b9bb3e15a9a8201bfaf47a07b2cca439080a5a (patch) | |
tree | 8672ddcc98760c03c5bd91daac1fdd931c7bff41 /examples/maildirresource | |
parent | 90900beea1092ca3cd194ee88b0c2e26244c2ba6 (diff) | |
download | sink-f4b9bb3e15a9a8201bfaf47a07b2cca439080a5a.tar.gz sink-f4b9bb3e15a9a8201bfaf47a07b2cca439080a5a.zip |
Avoid building tests that link to the resource on windows.
Because we'd have to properly export the symbols for the linking on
windows to work.
Diffstat (limited to 'examples/maildirresource')
-rw-r--r-- | examples/maildirresource/CMakeLists.txt | 8 | ||||
-rw-r--r-- | examples/maildirresource/tests/CMakeLists.txt | 1 |
2 files changed, 6 insertions, 3 deletions
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 | ||