diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-17 11:02:17 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-17 11:02:48 +0100 |
| commit | 1a85bc367aaa48f99ed3d2a39bccadb7fcd57c69 (patch) | |
| tree | 672961c659e502503301890bd6445f296736f1ca /CMakeLists.txt | |
| parent | 8b8daf2fa2f829338cf9ad3cd54e3312d1596311 (diff) | |
| download | BobinkQtOpcUaAppTemplate-1a85bc367aaa48f99ed3d2a39bccadb7fcd57c69.tar.gz BobinkQtOpcUaAppTemplate-1a85bc367aaa48f99ed3d2a39bccadb7fcd57c69.zip | |
Add QtXpl2 submodule for XPL2 printhead protocol support
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 4b0403c..262cf71 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,10 @@ set(QT_QML_GENERATE_QMLLS_INI # and initialized submodules: git submodule update --init --recursive add_subdirectory(deps/BobinkQtOpcUa) +# ── QtXpl2 ──────────────────────────────────────────────────────────────── TCP +# client for the Alchemie XPL2 printhead remote protocol. +add_subdirectory(deps/QtXpl2) + # Ensure the qml/ import directory exists before qmlimportscanner runs file(MAKE_DIRECTORY "${CMAKE_BINARY_DIR}/qml") @@ -36,7 +40,8 @@ qt_add_qml_module( QML_FILES Main.qml IMPORT_PATH - "${CMAKE_BINARY_DIR}/deps/BobinkQtOpcUa/qml") + "${CMAKE_BINARY_DIR}/deps/BobinkQtOpcUa/qml" + "${CMAKE_BINARY_DIR}/deps/QtXpl2/qml") # Executable goes to bin/ to avoid clashing with the QML module directory set_target_properties( @@ -45,8 +50,8 @@ set_target_properties( # Link against BobinkQtOpcUaplugin (not BobinkQtOpcUa). The "plugin" target # includes the QML type registration needed for `import Bobink`. -target_link_libraries(BobinkQtOpcUaAppTemplate PRIVATE Qt6::Quick - BobinkQtOpcUaplugin) +target_link_libraries(BobinkQtOpcUaAppTemplate + PRIVATE Qt6::Quick BobinkQtOpcUaplugin QtXpl2plugin) # ── Runtime quirks ────────────────────────────────────────────────────────── # BobinkQtOpcUa builds open62541 as a shared library. The QtOpcUa backend plugin |
