# CMake is required to compile software (http://www.cmake.org/cmake/resources/software.html)
# you can install software by executing this file:  sh INSTALL
#

# Prepare GATB sub-module
git submodule init
git submodule update

# Prepare directories:
rm -rf build
mkdir  build

# Go in the 'build' directory
cd build

# Prepare the makefile
cmake ..

# Run the newly created makefile:
make
# To compile faster, use:
# make -j8

# Go back at the installation root directory
cd ..
# run tests
echo "Running simple test..."
cd test
. ./simple_test.sh
cd ..
