aboutsummaryrefslogtreecommitdiffstats
path: root/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt11
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