summaryrefslogtreecommitdiffstats
path: root/demo
diff options
context:
space:
mode:
authorThomas Vanbesien <tvanbesi@proton.me>2026-02-19 22:25:47 +0100
committerThomas Vanbesien <tvanbesi@proton.me>2026-02-19 22:25:47 +0100
commit5fe029fd127dd70079a01eb6dfbd347954bba9de (patch)
tree0624b94a4fe09aafc6debdac1cd23797200c9992 /demo
parentaf758b3060e385f7fc204258f95c14379c2d6982 (diff)
downloadBobinkQtOpcUa-5fe029fd127dd70079a01eb6dfbd347954bba9de.tar.gz
BobinkQtOpcUa-5fe029fd127dd70079a01eb6dfbd347954bba9de.zip
Install QtOpcUa to local prefix instead of system Qt directory
Add QTOPCUA_INSTALL_DIR and CMAKE_INSTALL_PREFIX so QtOpcUa installs to build/deps/qtopcua-install/ rather than polluting ~/Qt/6.10.2/. Use QT_ADDITIONAL_PACKAGES_PREFIX_PATH so Qt's find_package resolves OpcUa from the local install.
Diffstat (limited to 'demo')
-rw-r--r--demo/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/demo/CMakeLists.txt b/demo/CMakeLists.txt
index efdfc72..03c19d3 100644
--- a/demo/CMakeLists.txt
+++ b/demo/CMakeLists.txt
@@ -18,4 +18,4 @@ target_link_libraries(BobinkDemo PRIVATE Qt6::Quick BobinkQtOpcUaplugin)
# Tell the demo where to find the locally-built OpcUa plugin at runtime
target_compile_definitions(
- BobinkDemo PRIVATE QTOPCUA_PLUGIN_PATH="${QTOPCUA_BUILD_DIR}/plugins")
+ BobinkDemo PRIVATE QTOPCUA_PLUGIN_PATH="${QTOPCUA_INSTALL_DIR}/plugins")