aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qmlbasicapp/BasicExtension
diff options
context:
space:
mode:
authorUlf Hermann <[email protected]>2024-09-09 11:58:43 +0200
committerUlf Hermann <[email protected]>2024-09-10 15:51:06 +0200
commit9ea281b3b5a8a6eeef9db597761de84fe8ccbaf2 (patch)
tree6ebad8636bae970709de538de4d34dda268b101a /tests/auto/qml/qmlbasicapp/BasicExtension
parent453846076b07d5cb10854d90b3bf2572f7f55ab2 (diff)
Tests: Fix various CMake warnings
Add NO_GENERATE_EXTRA_QMLDIRS where applicable, make output directories and module URIs match, and avoid setting QTP0004 to OLD since that just generates a different warning. Also, explicitly include some .js files in the qmldir, even if that means re-evaluation on each import. Pick-to: 6.8 Change-Id: Ia03445ed7df85aa4d2032ba51675bab7501ad55b Reviewed-by: Fabian Kosmale <[email protected]>
Diffstat (limited to 'tests/auto/qml/qmlbasicapp/BasicExtension')
-rw-r--r--tests/auto/qml/qmlbasicapp/BasicExtension/CMakeLists.txt3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/auto/qml/qmlbasicapp/BasicExtension/CMakeLists.txt b/tests/auto/qml/qmlbasicapp/BasicExtension/CMakeLists.txt
index b95067de6b..fc311e3466 100644
--- a/tests/auto/qml/qmlbasicapp/BasicExtension/CMakeLists.txt
+++ b/tests/auto/qml/qmlbasicapp/BasicExtension/CMakeLists.txt
@@ -7,6 +7,9 @@ qt_autogen_tools_initial_setup(additional_qml_module)
qt_add_plugin(additional_qml_module_plugin STATIC PLUGIN_TYPE qml_plugin CLASS_NAME BasicExtension)
qt_autogen_tools_initial_setup(additional_qml_module_plugin)
+# Yes, we want Less.js re-evaluated whenever it is imported.
+set_source_files_properties("Less.js" PROPERTIES QT_QML_SKIP_QMLDIR_ENTRY FALSE)
+
qt6_add_qml_module(additional_qml_module
PLUGIN_TARGET additional_qml_module_plugin
CLASS_NAME "BasicExtension"