diff options
author | Craig Scott <craig.scott@qt.io> | 2021-08-18 18:16:17 +1000 |
---|---|---|
committer | Craig Scott <craig.scott@qt.io> | 2021-08-23 17:26:32 +1000 |
commit | 03b026e2c46ac8badd7391897b67a54358479bfa (patch) | |
tree | 0384c8c87457a92bbe1a90d8fffa5b2035b64d50 /tests | |
parent | 295df0380fffa7ea43c36c26e51bc7ff4d158710 (diff) | |
download | qtlocation-03b026e2c46ac8badd7391897b67a54358479bfa.tar.gz |
Use the new QML CMake API for examples, tests and docs
The qt6_qml_type_registration() command will become internal. Update
the examples, tests and docs to no longer call this command and use
the new QML CMake API available from Qt 6.2 instead.
Task-number: QTBUG-95093
Pick-to: 6.2
Change-Id: Ibd62ccb4e2723a64d8a2c4418982037419d19855
Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/auto/declarative_positioning_core/CMakeLists.txt | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/tests/auto/declarative_positioning_core/CMakeLists.txt b/tests/auto/declarative_positioning_core/CMakeLists.txt index 673d2856..0afb3021 100644 --- a/tests/auto/declarative_positioning_core/CMakeLists.txt +++ b/tests/auto/declarative_positioning_core/CMakeLists.txt @@ -22,19 +22,14 @@ qt_internal_add_test(tst_declarative_positioning_core TESTDATA ${test_data} ) -# special case begin - -# These properties are required for the qt6_qml_type_registration() -# to work properly -set_target_properties(tst_declarative_positioning_core - PROPERTIES - QT_QML_MODULE_URI TestFactory - QT_QML_MODULE_VERSION 1.0 +qt_add_qml_module(tst_declarative_positioning_core + URI TestFactory + VERSION 1.0 + QML_FILES + tst_address.qml + tst_coordinate.qml + tst_geoshape.qml + tst_position.qml + tst_positionsource.qml + NO_RESOURCE_TARGET_PATH ) - -qt6_qml_type_registration(tst_declarative_positioning_core) - -# special case end - -#### Keys ignored in scope 1:.:.:declarative_positioning_core.pro:<TRUE>: -# TEMPLATE = "app" |