1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
#! /bin/bash
# Shell script to ease the launch of a Sight application on linux.
#
# This exports the proper LD_LIBRARY_PATH, and append the profile.xml of the application
# Don't modify this file, it is automatically generated by CMake.
me=$(cd "$(dirname "$0")"; pwd)
# Setup the directories
bindir="$me"
rootdir=`cd "$me/.." ; pwd`
depslibdir="$rootdir/lib"
libdir="$rootdir/@SIGHT_MODULE_LIB_PREFIX@"
moduledir="$rootdir/@SIGHT_MODULE_RC_PREFIX@"
moduleopt="@SIGHT_EXTRA_MODULES_OPT@"
# export LD_LIBRARY_PATH
LD_LIBRARY_PATH=$depslibdir:$libdir:${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}
export LD_LIBRARY_PATH
# Use CMAKE Variable of sightrun and Profile.xml path
exec "$bindir/@LAUNCHER@" \""$moduledir/@PROFILE_PATH@"\" $moduleopt $@
|