@@ -1,18 +1,25 | |||
|
1 | 1 | !include( ../tests.pri ) { |
|
2 | 2 | error( "Couldn't find the tests.pri file!" ) |
|
3 | 3 | } |
|
4 | 4 | |
|
5 | 5 | greaterThan(QT_MAJOR_VERSION, 4) { |
|
6 | 6 | QT += testlib widgets |
|
7 | 7 | } else { |
|
8 | 8 | CONFIG += qtestlib |
|
9 | 9 | } |
|
10 | 10 | !contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_") |
|
11 | 11 | |
|
12 | android { | |
|
13 | # Workaround to fix android deployment, which seems to always look for target in | |
|
14 | # OUT_PWD instead of DESTDIR. Need to override the QMAKE_POST_LINK setting done | |
|
15 | # in tests.pri, as "tst_" was prepended to the target. | |
|
16 | QMAKE_POST_LINK = $$QMAKE_COPY $$CHART_BUILD_BIN_DIR/lib$${TARGET}.so $$OUT_PWD/lib$${TARGET}.so | |
|
17 | } | |
|
18 | ||
|
12 | 19 | INCLUDEPATH += ../inc |
|
13 | 20 | HEADERS += ../inc/tst_definitions.h |
|
14 | 21 | |
|
15 | 22 | OBJECTS_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
|
16 | 23 | MOC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
|
17 | 24 | UI_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
|
18 | 25 | RCC_DIR = $$CHART_BUILD_DIR/tests/auto/$$TARGET |
General Comments 0
You need to be logged in to leave comments.
Login now