aboutsummaryrefslogtreecommitdiffstats
path: root/demo/CMakeLists.txt
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-25 16:11:53 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-25 18:08:28 +0100
commit7bb49eabdf8d86567660c8825892eb323fa6e674 (patch)
treebbcfb9f80fa8373dc61e63cafef30e8a664cedea /demo/CMakeLists.txt
parent9507f9779809bd077705d1ad54384f714b41c122 (diff)
downloadBobinkQtOpcUa-7bb49eabdf8d86567660c8825892eb323fa6e674.tar.gz
BobinkQtOpcUa-7bb49eabdf8d86567660c8825892eb323fa6e674.zip
Add .qmlformat.ini, qmlls support, and format QML files
- Enable QT_QML_GENERATE_QMLLS_INI for QML Language Server support - Add IMPORT_PATH to demo's qt_add_qml_module so .qmlls.ini includes the local build QML directory alongside the Qt system path - Add editor setup section to README with qmlls and qmlformat guidance - Add QML formatting section to French guide - Reformat demo QML files with .qmlformat.ini (line wrapping at 80 cols)
Diffstat (limited to 'demo/CMakeLists.txt')
-rw-r--r--demo/CMakeLists.txt4
1 files changed, 3 insertions, 1 deletions
diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt
index d2158cb..dd208e8 100644
--- a/demo/CMakeLists.txt
+++ b/demo/CMakeLists.txt
@@ -8,7 +8,9 @@ qt_add_qml_module(
1.0
QML_FILES
Main.qml
- NodePage.qml)
+ NodePage.qml
+ IMPORT_PATH
+ "${PROJECT_BINARY_DIR}/qml")
# Executable goes to bin/ to avoid clashing with the QML module directory
set_target_properties(BobinkDemo PROPERTIES RUNTIME_OUTPUT_DIRECTORY