# typical build for cmake projects
cmake_build() {
cd $SOURCE_DIRECTORY  &&
mkdir -p build        &&
cd build              &&
cmake -DCMAKE_INSTALL_PREFIX=$INSTALL_ROOT/usr ../  &&
make
}


# build for qt4 projects
qt4_build() {
QTDIR=$INSTALL_ROOT/usr
PATH=$QTDIR/bin/qt4:$PATH
cmake_build
}
