forked from GrossfieldLab/loos
-
Notifications
You must be signed in to change notification settings - Fork 1
/
loos_setup.sh.in
48 lines (38 loc) · 1.58 KB
/
loos_setup.sh.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# Setup environment for bourne-shell-like shells...
#
# This file is part of LOOS.
#
# LOOS (Lightweight Object-Oriented Structure library)
# Copyright (c) 2012 Tod D. Romo, Grossfield Lab
# Department of Biochemistry and Biophysics
# School of Medicine & Dentistry, University of Rochester
#
# This package (LOOS) is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation under version 3 of the License.
#
# This package is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
### This will be automatically set to where LOOS is built or installed. If
#necessary,
### change manually...
export PATH="@CMAKE_INSTALL_PREFIX@/bin:$PATH"
# Use DYLD_LIBRARY_PATH or LD_LIBRARY_PATH depending on OS
SYSTEM=`uname`
if [ "$SYSTEM" = "Darwin" ] ; then
export DYLD_FALLBACK_LIBRARY_PATH="@CMAKE_INSTALL_PREFIX@/lib:$DYLD_FALLBACK_LIBRARY_PATH"
touch .
elif `echo $SYSTEM | grep -q '^CYGWIN'` ; then
export LD_LIBRARY_PATH="@CMAKE_INSTALL_PREFIX@/lib:$LD_LIBRARY_PATH"
else
export LD_LIBRARY_PATH="@CMAKE_INSTALL_PREFIX@/lib:$LD_LIBRARY_PATH"
fi
# Cygwin requires libs in PATH
if `echo $SYSTEM | grep -q '^CYGWIN'` ; then
export PATH="@CMAKE_INSTALL_PREFIX@/lib:$PATH"
fi