diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-19 18:00:52 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-02-19 18:00:52 +0100 |
| commit | e73fe498e86dbb20d74f8d6ca13b541642676b82 (patch) | |
| tree | 572593fd880d10ae23544986116847271ee49f99 /src/CMakeLists.txt | |
| parent | 50c62c35463b62a3a7acebf9ebe22d44f1c6dca2 (diff) | |
| download | BobinkQtOpcUa-e73fe498e86dbb20d74f8d6ca13b541642676b82.tar.gz BobinkQtOpcUa-e73fe498e86dbb20d74f8d6ca13b541642676b82.zip | |
Rename QML singleton to Bobink and simplify singleton lifecycle
Replace QML_ELEMENT with QML_NAMED_ELEMENT(Bobink) so QML references
use `Bobink` instead of `BobinkClient`. Remove instance()/create()
factory in favor of inline s_instance set in the constructor. Import
BobinkPlugin statically in demo, link demo to BobinkQtOpcUaplugin,
and make library link dependencies PUBLIC. Add .qtcreator to gitignore.
Diffstat (limited to 'src/CMakeLists.txt')
| -rw-r--r-- | src/CMakeLists.txt | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 5898132..1292194 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,3 +1,4 @@ +qt_add_library(BobinkQtOpcUa STATIC) # BobinkQtOpcUa — QML module wrapping QtOpcUa for declarative use. qt_add_qml_module( BobinkQtOpcUa @@ -15,4 +16,4 @@ qt_add_qml_module( OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/qml/Bobink") -target_link_libraries(BobinkQtOpcUa PRIVATE Qt6::Core Qt6::Quick Qt6::OpcUa) +target_link_libraries(BobinkQtOpcUa PUBLIC Qt6::Core Qt6::Quick Qt6::OpcUa) |
