summaryrefslogtreecommitdiffstats
path: root/tests/auto/auto.pri
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/auto.pri')
-rw-r--r--tests/auto/auto.pri22
1 files changed, 5 insertions, 17 deletions
diff --git a/tests/auto/auto.pri b/tests/auto/auto.pri
index c528b34a..a0915009 100644
--- a/tests/auto/auto.pri
+++ b/tests/auto/auto.pri
@@ -2,26 +2,14 @@
error( "Couldn't find the tests.pri file!" )
}
-greaterThan(QT_MAJOR_VERSION, 4) {
QT += testlib widgets
-} else {
- CONFIG += qtestlib
-}
-!contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_")
-android {
- # Workaround to fix android deployment, which seems to always look for target in
- # OUT_PWD instead of DESTDIR. Need to override the QMAKE_POST_LINK setting done
- # in tests.pri, as "tst_" was prepended to the target.
- COPY_PARAMETERS = "$$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so"
- contains(QMAKE_HOST.os, Windows): COPY_PARAMETERS = $$replace(COPY_PARAMETERS, "/","\\")
- QMAKE_POST_LINK += $$QMAKE_COPY $$COPY_PARAMETERS
-}
+!contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_")
INCLUDEPATH += ../inc
HEADERS += ../inc/tst_definitions.h
-OBJECTS_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
-MOC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
-UI_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
-RCC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET
+#Define for unit tests
+CONFIG(debug, debug|release) {
+ DEFINES += BUILD_PRIVATE_UNIT_TESTS
+}