CMake/Tests/BundleGeneratorTest/StartupCommand

13 lines
237 B
Bash
Executable File

#!/bin/sh
BUNDLE="`echo "$0" | sed -e 's/\/Contents\/MacOS\/.*//'`"
RESOURCES="$BUNDLE/Contents/Resources"
echo "BUNDLE: $BUNDLE"
echo "RESOURCES: $RESOURCES"
export DYLD_LIBRARY_PATH=$RESOURCES/lib
exec "$RESOURCES/bin/Executable"