Skip to content
Snippets Groups Projects
Commit 151035ac authored by Bienchen's avatar Bienchen
Browse files

Added conf script forBC2

parent ae8216c6
No related branches found
No related tags found
No related merge requests found
#!/bin/sh
# This script is aware of out-of-source builds. Just call it from within the
# build directory.
function usage
{
echo 'usage:'
echo ' fedora-19-conf <OST_ROOT> [OPTIONS]'
echo ' OST_ROOT is the staging directory of OST.'
echo ' Valid options are anything that CMake accepts.'
exit
}
NUM_PARAMS=$#
if [[ "$NUM_PARAMS" -lt "1" ]] ; then
echo 'You must specify the location of promod3 and OST (in that order).';
usage
fi
OST_ROOT=$(cd $1; pwd)
shift
PROMOD3_SRC=$(cd `dirname $0`; pwd)
PROMOD3_SRC=${PROMOD3_SRC}/..
cmake $PROMOD3_SRC -DOST_ROOT=$OST_ROOT \
-DBOOST_ROOT=/import/bc2/soft/app/boost/1.47.0/Linux/ \
-DPYTHON_ROOT=/import/bc2/soft/app/Python/2.7.5/Linux \
$@
## Emacs magic
# Local Variables:
# mode: shell-script
# End:
# LocalWords: OSX MacPorts uname SRC OST promod CMake NUM PARAMS lt fi cd
# LocalWords: pwd dirname cmake DPYTHON DBOOST conf
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment