fix build on windows and android

This commit is contained in:
Andrei Yankovich 2020-02-04 16:51:00 +03:00
parent 86485e64a0
commit f0438be2ea
2 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,7 @@ SUBDIRS += QuasarAppLib \
tests/TestOnlyC \
tests/TestQtWidgets \
tests/TestQMLWidgets
}
contains(DEFINES, WITH_ALL_TESTS) {
SUBDIRS += tests/quicknanobrowser
@ -45,3 +45,4 @@ DISTFILES += \
README.md \
}

View File

@ -3,11 +3,14 @@ win32:exec = $$PWD/UnitTests/build/release/UnitTests.exe
QT_DIR= $$[QT_HOST_BINS]
win32:QMAKE_BIN= $$QT_DIR/qmake.exe
win32:DEPLOYER= %cqtdeployer%
contains(QMAKE_HOST.os, Linux):{
QMAKE_BIN= $$QT_DIR/qmake
win32:DEPLOYER= cqtdeployer
}
deployTest.commands = cqtdeployer -bin $$exec clear -qmake $$QMAKE_BIN -targetDir $$PWD/deployTests -libDir $$PWD -recursiveDepth 4
deployTest.commands = $$DEPLOYER -bin $$exec clear -qmake $$QMAKE_BIN -targetDir $$PWD/deployTests -libDir $$PWD -recursiveDepth 4
test.depends = deployTest