From 1a85bc367aaa48f99ed3d2a39bccadb7fcd57c69 Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Tue, 17 Mar 2026 11:02:17 +0100 Subject: Add QtXpl2 submodule for XPL2 printhead protocol support --- CMakeLists.txt | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'CMakeLists.txt') 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 -- cgit v1.2.3