summaryrefslogtreecommitdiffstats
path: root/src/quicktestlib/quicktestlib_dep.pri
blob: 543d5af1668a82d96d8bfe323ab53e770215bad2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22

QT += declarative testlib

INCLUDEPATH += $$PWD
LIBS += -L../../lib -L../../bin

win32:CONFIG(debug, debug|release) {
    LIBS += -lQtQuickTest$${QT_LIBINFIX}d
} else {
    LIBS += -lQtQuickTest$${QT_LIBINFIX}
}

# Locate the "lib" directory in the build tree and put it before
# the Qt "lib" directory in the library path so that we link
# against the libQtQuickTest.so in our build tree, not the Qt one.
FIND_TOP=..
for(i,forever) {
    exists($$_PRO_FILE_PWD_/$$FIND_TOP/qtest-qml.pro):break()
    FIND_TOP=../$$FIND_TOP
}
load(qt)
QMAKE_LIBDIR=$$OUT_PWD/$$FIND_TOP/lib $$QMAKE_LIBDIR