Commit 784f3caa authored by Marco Clemencic's avatar Marco Clemencic
Browse files

added a simple (preliminary) configure script

After the clone/check-out, run

  ./configure
  cd build-dir
  make && make install
  ctest
parent 366f3428
#!/bin/sh
LCG_version=62b
cd $(dirname $0)
rootdir=`pwd`
if [ ! -e build-dir/CMakeCache.txt ] ; then
if which distcc &> /dev/null ; then
distcc_opt="-DCMAKE_USE_DISTCC=ON"
fi
if which ccache &> /dev/null ; then
ccache_opt="-DCMAKE_USE_CCACHE=ON"
fi
mkdir -p build-dir
cd build-dir
export CMAKE_PREFIX_PATH=../cmake
time cmake -DCMAKE_TOOLCHAIN_FILE=../cmake/toolchain/heptools-${LCG_version}.cmake -DBUILD_TESTS=ON $distcc_opt $ccache_opt .. || (cd $rootdir ; rm -rf build-dir)
cd $rootdir
fi
if [ -e build-dir/CMakeCache.txt ] ; then
cat <<EOF
Now you can build with:
cd `pwd`/build-dir
make
make install
and test with
ctest
EOF
fi
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment