qt_add_executable(BobinkDemo main.cpp) qt_add_qml_module( BobinkDemo URI BobinkDemo VERSION 1.0 QML_FILES Main.qml NodePage.qml) # Executable goes to bin/ to avoid clashing with the QML module directory set_target_properties(BobinkDemo PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin") target_link_libraries(BobinkDemo PRIVATE Qt6::Quick BobinkQtOpcUa) # 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")