aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/auto/macfunctions/macfunctions.pro2
-rw-r--r--tests/auto/macfunctions/tst_qmacfunctions.mm5
-rw-r--r--tests/tests.pro2
3 files changed, 6 insertions, 3 deletions
diff --git a/tests/auto/macfunctions/macfunctions.pro b/tests/auto/macfunctions/macfunctions.pro
index b13227a..9a605d9 100644
--- a/tests/auto/macfunctions/macfunctions.pro
+++ b/tests/auto/macfunctions/macfunctions.pro
@@ -3,4 +3,4 @@ CONFIG -= app_bundle
TARGET = tst_qmacfunctions
QT += macextras widgets testlib
OBJECTIVE_SOURCES += tst_qmacfunctions.mm
-LIBS += -framework AppKit
+macos: LIBS += -framework AppKit
diff --git a/tests/auto/macfunctions/tst_qmacfunctions.mm b/tests/auto/macfunctions/tst_qmacfunctions.mm
index e8e04a7..cd1d304 100644
--- a/tests/auto/macfunctions/tst_qmacfunctions.mm
+++ b/tests/auto/macfunctions/tst_qmacfunctions.mm
@@ -25,7 +25,6 @@
** $QT_END_LICENSE$
**
****************************************************************************/
-#import <AppKit/AppKit.h>
#include <QString>
#include <QtTest>
@@ -35,6 +34,10 @@
#include <QtWidgets/QMainWindow>
#include <qmacfunctions.h>
+#ifdef Q_OS_MACOS
+#import <AppKit/AppKit.h>
+#endif
+
class tst_QMacFunctions : public QObject
{
Q_OBJECT
diff --git a/tests/tests.pro b/tests/tests.pro
index 77383dc..7fbc8a9 100644
--- a/tests/tests.pro
+++ b/tests/tests.pro
@@ -1,2 +1,2 @@
TEMPLATE = subdirs
-macx:!ios:SUBDIRS = auto
+SUBDIRS = auto