#!/bin/bash if [ "$make_install" = "yes" ]; then install_prefix=$SIMPATH_INSTALL else install_prefix=$SIMPATH/basics/gtest fi checkfile=$install_prefix/lib/libgtest.a if (not_there gtest $checkfile); then cd $SIMPATH/basics untar gtest $GTESTVERSION.tar.bz2 ln -s $GTESTVERSION gtest cd gtest mkdir build cd build cmake .. make # fake the installation process mkdir -p $install_prefix/lib cp libgtest.a libgtest_main.a $install_prefix/lib if [ ! -d $install_prefix/include/gtest ];then mkdir -p $install_prefix/include cp -r ../include/gtest $install_prefix/include fi check_all_libraries $install_prefix/lib check_success gtest $checkfile check=$? fi cd $SIMPATH return 1