This repository has been archived on 2023-08-11. You can view files and clone it, but cannot push or open issues or pull requests.
plugin/tests/tests.pri

31 lines
708 B
Plaintext

!greaterThan(QT_MAJOR_VERSION, 4) {
load(qttest_p4)
}
include(../main.pri)
INCLUDEPATH += $$PWD/../src/libs $$PWD/../src/shared $$PWD/../src/plugins
QMAKE_RPATHDIR += $$LIBRARY_PATH
unix {
QMAKE_LFLAGS += -Wl,-z,origin \'-Wl,-rpath,$${QMAKE_RPATHDIR}\'
}
LIBS +=-L$$LIBRARY_PATH
LIBS +=-L$$PLUGINS_PATH
TEMPLATE = app
# DESTDIR = $$APP_PATH
# prefix test binary with tst_
!contains(TARGET, ^tst_.*):TARGET = $$join(TARGET,,"tst_")
win32 {
lib = $$APP_PATH;$$APP_PATH/plugins
lib ~= s,/,\\,g
# the below gets added to later by testcase.prf
check.commands = cd . & set PATH=$$lib;%PATH%& cmd /c
}
sub_dir = $$_PRO_FILE_PWD_
sub_dir ~= s,^$${PWD},,
DESTDIR = $$TESTS_PATH$$sub_dir