aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--.qmake.conf2
-rw-r--r--tests/auto/sanity/sanity.pro2
-rw-r--r--tests/benchmarks/creationtime/creationtime.pro2
3 files changed, 4 insertions, 2 deletions
diff --git a/.qmake.conf b/.qmake.conf
index 3748d167..79f7457c 100644
--- a/.qmake.conf
+++ b/.qmake.conf
@@ -1,4 +1,6 @@
load(qt_build_config)
CONFIG += warning_clean
+QQC2_SOURCE_TREE = $$PWD
+
MODULE_VERSION = 5.6.0
diff --git a/tests/auto/sanity/sanity.pro b/tests/auto/sanity/sanity.pro
index 15f2679a..6eb87e37 100644
--- a/tests/auto/sanity/sanity.pro
+++ b/tests/auto/sanity/sanity.pro
@@ -5,7 +5,7 @@ QT += qml testlib core-private qml-private
CONFIG += testcase
osx:CONFIG -= app_bundle
-DEFINES += QQC2_IMPORT_PATH=\\\"$$absolute_path(../../../src/imports)\\\"
+DEFINES += QQC2_IMPORT_PATH=\\\"$$QQC2_SOURCE_TREE/src/imports\\\"
SOURCES += \
$$PWD/tst_sanity.cpp
diff --git a/tests/benchmarks/creationtime/creationtime.pro b/tests/benchmarks/creationtime/creationtime.pro
index 4383a759..17f428ad 100644
--- a/tests/benchmarks/creationtime/creationtime.pro
+++ b/tests/benchmarks/creationtime/creationtime.pro
@@ -5,7 +5,7 @@ QT += qml testlib
CONFIG += testcase
osx:CONFIG -= app_bundle
-DEFINES += QQC2_IMPORT_PATH=\\\"$$absolute_path(../../../src/imports)\\\"
+DEFINES += QQC2_IMPORT_PATH=\\\"$$QQC2_SOURCE_TREE/src/imports\\\"
SOURCES += \
tst_creationtime.cpp