qmltestcase: Fix generation of Visual Studio project files

Mimicking the approach from testlib_defines.prf, DEFINES containing a path
surrounded by quotation marks have to be handled differently for Visual
Studio projects.

Change-Id: I26f6a45d4df154f599e8be15b3aa3905cf703a1f
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
bb10
Oliver Wolff 2019-01-11 10:25:55 +01:00
parent eef4d16639
commit 911da982df
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,8 @@
!isEmpty(SOURCES) {
QT += qml qmltest
load(testcase)
DEFINES += QUICK_TEST_SOURCE_DIR=\"\\\"$$_PRO_FILE_PWD_\\\"\"
contains(TEMPLATE, vc.*): DEFINES += QUICK_TEST_SOURCE_DIR=\"$$_PRO_FILE_PWD_\"
else: DEFINES += QUICK_TEST_SOURCE_DIR=$$shell_quote(\"$$_PRO_FILE_PWD_\")
} else {
# Allow a project to run tests without a CPP stub
TEMPLATE = aux