Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 35 lines (23 sloc) 594 Bytes
#!/bin/bash
install_directory="/usr/local"
reldir="./release"
debugdir="./debug"
profiledir="./profile"
if [ ! -d $reldir ]; then
mkdir $reldir
fi
if [ ! -d $debugdir ]; then
mkdir $debugdir
fi
if [ ! -d $profiledir ]; then
mkdir $profiledir
fi
cd $reldir
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=$install_directory ../.
cd ..
cd $debugdir
cmake -D CMAKE_BUILD_TYPE=Debug -D CMAKE_INSTALL_PREFIX=$install_directory ../.
cd ..
cd $profiledir
cmake -D CMAKE_BUILD_TYPE=Release -D COMPILE_PROFILING=1 -D CMAKE_INSTALL_PREFIX=$install_directory ../.
cd ..