summaryrefslogtreecommitdiffstats
path: root/tqt/kqt3-wrapper.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tqt/kqt3-wrapper.cmake')
-rwxr-xr-xtqt/kqt3-wrapper.cmake29
1 files changed, 29 insertions, 0 deletions
diff --git a/tqt/kqt3-wrapper.cmake b/tqt/kqt3-wrapper.cmake
new file mode 100755
index 0000000..e8ba648
--- /dev/null
+++ b/tqt/kqt3-wrapper.cmake
@@ -0,0 +1,29 @@
+#!/bin/bash
+
+#
+# This script is part of the KGtk package.
+#
+# (C) Craig Drummond, 2007
+#
+#
+# --
+# Released under the GPL v2 or later
+# --
+#
+
+app=`basename $0`
+
+if [ "$app" = "kqt3-wrapper" ] ; then
+ LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib/kgtk/libkqt3.so:$LD_PRELOAD "$@"
+else
+ dir=`dirname $0`
+ oldPath=$PATH
+ PATH=`echo $PATH | sed s:$dir::g`
+ real=`which $app`
+ PATH=$oldPath
+
+ if [ "$real" != "" ] && [ "`dirname $real`" != "$dir" ] ; then
+ LD_PRELOAD=@CMAKE_INSTALL_PREFIX@/lib@LIB_SUFFIX@/kgtk/libkqt3.so:$LD_PRELOAD $real "$@"
+ fi
+fi