aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorFabian Kosmale <fabian.kosmale@qt.io>2022-12-08 18:28:40 +0100
committerAmir Masoud Abdol <amir.abdol@qt.io>2023-02-01 23:39:19 +0100
commitec452fc6e87e82d135d7ef782d5c811583d5c433 (patch)
treed23a91de87691375298ee23435fc4bd1f21a3475 /tests/auto
parenta6d9312c99d6f80cbea7538276d2890d0cc4c760 (diff)
qt_add_qml_module: Make usage of AUTO_RESOURCE_PREFIX a policy
Writing AUTO_RESOURCE_PREFIX in every qt_add_qml_module call seems rather pointless. In addition: - Add documentation for QTP0001. - Adjust some of the examples to use QTP0001 policy. - Improved the error message. Pick-to: 6.5 Task-number: QTBUG-96233 Change-Id: I6e19a491acba97493893bf1953fca3462296c1ea Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io> Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/cmake/qtquickcompiler/CMakeLists.txt1
-rw-r--r--tests/auto/cmake/test_common_import_path/CMakeLists.txt1
-rw-r--r--tests/auto/cmake/test_common_import_path/duck/tick/CMakeLists.txt1
-rw-r--r--tests/auto/cmake/test_common_import_path/duck/trick/CMakeLists.txt1
-rw-r--r--tests/auto/cmake/tooling_imports/First/CMakeLists.txt1
-rw-r--r--tests/auto/cmake/tooling_imports/Second/CMakeLists.txt1
6 files changed, 6 insertions, 0 deletions
diff --git a/tests/auto/cmake/qtquickcompiler/CMakeLists.txt b/tests/auto/cmake/qtquickcompiler/CMakeLists.txt
index 6cfa9a0a5f..34acedff99 100644
--- a/tests/auto/cmake/qtquickcompiler/CMakeLists.txt
+++ b/tests/auto/cmake/qtquickcompiler/CMakeLists.txt
@@ -29,4 +29,5 @@ qt_add_qml_module(qqc_test
"resources with space/main.qml"
RESOURCES
main.cpp
+ RESOURCE_PREFIX /
)
diff --git a/tests/auto/cmake/test_common_import_path/CMakeLists.txt b/tests/auto/cmake/test_common_import_path/CMakeLists.txt
index 5d52274bf5..6071128010 100644
--- a/tests/auto/cmake/test_common_import_path/CMakeLists.txt
+++ b/tests/auto/cmake/test_common_import_path/CMakeLists.txt
@@ -27,5 +27,6 @@ qt_add_qml_module(cmake_test
URI duck
VERSION 1.0
QML_FILES main.qml
+ RESOURCE_PREFIX /
)
diff --git a/tests/auto/cmake/test_common_import_path/duck/tick/CMakeLists.txt b/tests/auto/cmake/test_common_import_path/duck/tick/CMakeLists.txt
index 99238812d3..c3ade36baf 100644
--- a/tests/auto/cmake/test_common_import_path/duck/tick/CMakeLists.txt
+++ b/tests/auto/cmake/test_common_import_path/duck/tick/CMakeLists.txt
@@ -8,5 +8,6 @@ qt_add_qml_module(duck_tick
VERSION 1.0
QML_FILES
Tick.qml
+ RESOURCE_PREFIX /
)
diff --git a/tests/auto/cmake/test_common_import_path/duck/trick/CMakeLists.txt b/tests/auto/cmake/test_common_import_path/duck/trick/CMakeLists.txt
index 5c3c8874f2..5ed512e906 100644
--- a/tests/auto/cmake/test_common_import_path/duck/trick/CMakeLists.txt
+++ b/tests/auto/cmake/test_common_import_path/duck/trick/CMakeLists.txt
@@ -8,5 +8,6 @@ qt_add_qml_module(duck_trick
VERSION 1.0
QML_FILES
Trick.qml
+ RESOURCE_PREFIX /
)
diff --git a/tests/auto/cmake/tooling_imports/First/CMakeLists.txt b/tests/auto/cmake/tooling_imports/First/CMakeLists.txt
index 3fc0fda56f..55a834b23e 100644
--- a/tests/auto/cmake/tooling_imports/First/CMakeLists.txt
+++ b/tests/auto/cmake/tooling_imports/First/CMakeLists.txt
@@ -9,4 +9,5 @@ qt_add_qml_module(BackingFirst
Neighbor.h
QML_FILES
DoSomething.qml
+ RESOURCE_PREFIX /
)
diff --git a/tests/auto/cmake/tooling_imports/Second/CMakeLists.txt b/tests/auto/cmake/tooling_imports/Second/CMakeLists.txt
index b728c4c37e..0f988d5adc 100644
--- a/tests/auto/cmake/tooling_imports/Second/CMakeLists.txt
+++ b/tests/auto/cmake/tooling_imports/Second/CMakeLists.txt
@@ -5,4 +5,5 @@ qt_add_qml_module(BackingSecond
URI Second
VERSION 1.0
QML_FILES CheckIt.qml
+ RESOURCE_PREFIX /
)