diff options
author | Eike Ziller <eike.ziller@qt.io> | 2021-07-16 20:21:44 +0200 |
---|---|---|
committer | Eike Ziller <eike.ziller@qt.io> | 2021-09-02 10:09:57 +0000 |
commit | 253c4e55b6c92ab7593aa3324137effca63f5531 (patch) | |
tree | d13ebbabc7d9f78e4c14d1b7b18582e7c64db388 /tests/auto/qml/qmldesigner/coretests/coretests.pro | |
parent | a111a6844231b74f8b8a093f108c04acb014a5e5 (diff) |
CMake build: Compile QmlDesigner autotests
We cannot do this via a static library, because the tests need
to compile the same files with different defines
(QMLDESIGNER_TEST). Add a function which extends a target
with the corresponding files.
Also do not hardcode resource directories in the test -
the Qt Creator app bundle is no longer in a "bin/" subdirectory
on macOS. Use the build system provided IDE_*_PATH
variables instead.
Change-Id: I21850eba3cb47b4dcfd5e66227183b2d1ff35ff2
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Cristian Adam <cristian.adam@qt.io>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Diffstat (limited to 'tests/auto/qml/qmldesigner/coretests/coretests.pro')
-rw-r--r-- | tests/auto/qml/qmldesigner/coretests/coretests.pro | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/auto/qml/qmldesigner/coretests/coretests.pro b/tests/auto/qml/qmldesigner/coretests/coretests.pro index e94cddbd7d6..f448ca10f5c 100644 --- a/tests/auto/qml/qmldesigner/coretests/coretests.pro +++ b/tests/auto/qml/qmldesigner/coretests/coretests.pro @@ -31,8 +31,9 @@ greaterThan(QT_MAJOR_VERSION, 4) { unix:!openbsd:!osx: LIBS += -lrt # posix shared memory -DEFINES+=QTCREATORDIR=\\\"$$IDE_BUILD_TREE\\\" -DEFINES+=TESTSRCDIR=\\\"$$_PRO_FILE_PWD_\\\" +DEFINES+=IDE_PLUGIN_PATH=$$system_quote(\"$$IDE_PLUGIN_PATH\") +DEFINES+=IDE_DATA_PATH=$$system_quote(\"$$IDE_DATA_PATH\") +DEFINES+=TESTSRCDIR=$$system_quote(\"$$_PRO_FILE_PWD_\") DEFINES += QTCREATOR_TEST DEFINES += QMLDESIGNER_TEST |