diff options
author | Jannis Voelker <jannis.voelker@basyskom.com> | 2019-01-07 11:35:22 +0100 |
---|---|---|
committer | Rainer Keller <Rainer.Keller@qt.io> | 2019-01-07 12:20:21 +0000 |
commit | e0e26edf7c46068c39d31ad10db51764354182eb (patch) | |
tree | 39d28886f55b5b346fab1b89662c5f3dd22e51fe | |
parent | 672e0b2c48117157fc14563978ff0570994fd445 (diff) |
Fix simulation server path for the waterpump example on macOS
Change-Id: Ia7078d2c55fb719d6b7a5627269b67cabe106503
Reviewed-by: Frank Meerkoetter <frank.meerkoetter@basyskom.com>
-rw-r--r-- | examples/opcua/waterpump/waterpump-qml/main.cpp | 2 | ||||
-rw-r--r-- | examples/opcua/waterpump/waterpump-qmlcpp/main.cpp | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/examples/opcua/waterpump/waterpump-qml/main.cpp b/examples/opcua/waterpump/waterpump-qml/main.cpp index f643b3b..8a1963c 100644 --- a/examples/opcua/waterpump/waterpump-qml/main.cpp +++ b/examples/opcua/waterpump/waterpump-qml/main.cpp @@ -65,6 +65,8 @@ int main(int argc, char *argv[]) #else serverExePath = app.applicationDirPath().append("/../../simulationserver/release/simulationserver.exe"); #endif +#elif defined(Q_OS_MACOS) + serverExePath = app.applicationDirPath().append("/../../../../simulationserver/simulationserver.app/Contents/MacOS/simulationserver"); #else serverExePath = app.applicationDirPath().append("/../simulationserver/simulationserver"); #endif diff --git a/examples/opcua/waterpump/waterpump-qmlcpp/main.cpp b/examples/opcua/waterpump/waterpump-qmlcpp/main.cpp index a2a60b0..fb22c3d 100644 --- a/examples/opcua/waterpump/waterpump-qmlcpp/main.cpp +++ b/examples/opcua/waterpump/waterpump-qmlcpp/main.cpp @@ -66,6 +66,8 @@ int main(int argc, char *argv[]) #else serverExePath = app.applicationDirPath().append("/../../simulationserver/release/simulationserver.exe"); #endif +#elif defined(Q_OS_MACOS) + serverExePath = app.applicationDirPath().append("/../../../../simulationserver/simulationserver.app/Contents/MacOS/simulationserver"); #else serverExePath = app.applicationDirPath().append("/../simulationserver/simulationserver"); #endif |