katie/cmake/dbus.sh.cmake
Ivailo Monev c8ab56a429 execute D-Bus tests with script
NetBSD does not have the daemon running by default and some environments
such as Travis may not have it either, this should make the tests pass
in such cases without any changes to the host

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2020-12-02 05:43:15 +00:00

17 lines
393 B
CMake

#!@KATIE_SHELL@
set -e
if [ -z "$LD_LIBRARY_PATH" ];then
export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib"
else
export LD_LIBRARY_PATH="@CMAKE_BINARY_DIR@/lib:$LD_LIBRARY_PATH"
fi
export QT_PLUGIN_PATH="@CMAKE_BINARY_DIR@/plugins"
export QML_IMPORT_PATH="@CMAKE_BINARY_DIR@/imports"
bin="$1"
shift
cd "$(dirname "$bin")"
exec dbus-launch @KATIE_CROSS_EXEC@ "./$(basename "$bin")" $@