diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-20 14:19:16 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2018-04-20 14:19:16 +0200 |
commit | 0aeacd360ded3dead3a28683a5b0fd2868a5b444 (patch) | |
tree | a68c5306d6ee859916264b92da4633bab9f60c25 /tests | |
parent | 572fcf00068b56abeed1ff946c3b7fc09a3dced2 (diff) | |
download | sink-0aeacd360ded3dead3a28683a5b0fd2868a5b444.tar.gz sink-0aeacd360ded3dead3a28683a5b0fd2868a5b444.zip |
Export from sink_test so we can link against it on windows
Diffstat (limited to 'tests')
-rw-r--r-- | tests/CMakeLists.txt | 1 | ||||
-rw-r--r-- | tests/mailsynctest.h | 3 | ||||
-rw-r--r-- | tests/mailtest.h | 3 | ||||
-rw-r--r-- | tests/mailthreadtest.h | 3 |
4 files changed, 7 insertions, 3 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index fe7866c..94654d9 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt | |||
@@ -13,6 +13,7 @@ add_definitions(-DTHREADTESTDATAPATH="${CMAKE_CURRENT_SOURCE_DIR}/threaddata") | |||
13 | 13 | ||
14 | find_package(KF5 COMPONENTS REQUIRED Mime) | 14 | find_package(KF5 COMPONENTS REQUIRED Mime) |
15 | 15 | ||
16 | generate_export_header(${PROJECT_NAME} BASE_NAME SinkTest EXPORT_FILE_NAME sinktest_export.h) | ||
16 | add_library(sink_test SHARED testimplementations.cpp getrssusage.cpp mailtest.cpp mailsynctest.cpp mailthreadtest.cpp utils.cpp) | 17 | add_library(sink_test SHARED testimplementations.cpp getrssusage.cpp mailtest.cpp mailsynctest.cpp mailthreadtest.cpp utils.cpp) |
17 | target_link_libraries(sink_test | 18 | target_link_libraries(sink_test |
18 | sink | 19 | sink |
diff --git a/tests/mailsynctest.h b/tests/mailsynctest.h index f197833..3c0076e 100644 --- a/tests/mailsynctest.h +++ b/tests/mailsynctest.h | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include "sinktest_export.h" | ||
21 | #include <QObject> | 22 | #include <QObject> |
22 | #include <QByteArray> | 23 | #include <QByteArray> |
23 | 24 | ||
@@ -33,7 +34,7 @@ namespace Sink { | |||
33 | * * INBOX | 34 | * * INBOX |
34 | * * INBOX.test | 35 | * * INBOX.test |
35 | */ | 36 | */ |
36 | class MailSyncTest : public QObject | 37 | class SINKTEST_EXPORT MailSyncTest : public QObject |
37 | { | 38 | { |
38 | Q_OBJECT | 39 | Q_OBJECT |
39 | 40 | ||
diff --git a/tests/mailtest.h b/tests/mailtest.h index cba623d..b827188 100644 --- a/tests/mailtest.h +++ b/tests/mailtest.h | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include "sinktest_export.h" | ||
21 | #include <QObject> | 22 | #include <QObject> |
22 | #include <QByteArray> | 23 | #include <QByteArray> |
23 | 24 | ||
@@ -26,7 +27,7 @@ | |||
26 | 27 | ||
27 | namespace Sink { | 28 | namespace Sink { |
28 | 29 | ||
29 | class MailTest : public QObject | 30 | class SINKTEST_EXPORT MailTest : public QObject |
30 | { | 31 | { |
31 | Q_OBJECT | 32 | Q_OBJECT |
32 | 33 | ||
diff --git a/tests/mailthreadtest.h b/tests/mailthreadtest.h index 1c5c389..6b64d4e 100644 --- a/tests/mailthreadtest.h +++ b/tests/mailthreadtest.h | |||
@@ -18,6 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include "sinktest_export.h" | ||
21 | #include <QObject> | 22 | #include <QObject> |
22 | #include <QByteArray> | 23 | #include <QByteArray> |
23 | 24 | ||
@@ -29,7 +30,7 @@ namespace Sink { | |||
29 | /** | 30 | /** |
30 | * Tests if the resource can thread emails. | 31 | * Tests if the resource can thread emails. |
31 | */ | 32 | */ |
32 | class MailThreadTest : public QObject | 33 | class SINKTEST_EXPORT MailThreadTest : public QObject |
33 | { | 34 | { |
34 | Q_OBJECT | 35 | Q_OBJECT |
35 | 36 | ||