From f4b9bb3e15a9a8201bfaf47a07b2cca439080a5a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 28 May 2018 14:27:42 +0200 Subject: 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. --- examples/maildirresource/CMakeLists.txt | 8 +++++--- examples/maildirresource/tests/CMakeLists.txt | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) (limited to 'examples/maildirresource') 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) install(TARGETS ${PROJECT_NAME} LIBRARY DESTINATION ${SINK_RESOURCE_PLUGINS_PATH} RUNTIME DESTINATION ${SINK_RESOURCE_PLUGINS_PATH}) -add_definitions(-DTESTDATAPATH="${CMAKE_CURRENT_SOURCE_DIR}/tests/data") - -add_subdirectory(tests) +if (WIN32) + message("Not building maildir resource tests on windows") +else() + add_subdirectory(tests) +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) include_directories( ${CMAKE_CURRENT_BINARY_DIR} ) +add_definitions(-DTESTDATAPATH="${CMAKE_CURRENT_SOURCE_DIR}/data") include(SinkTest) -- cgit v1.2.3