#!/bin/sh -e

git clone https://github.com/google/googletest.git
cd googletest
mkdir build
cd build
cmake \
    -D CMAKE_BUILD_TYPE="${CONFIGURATION}" \
    -D CMAKE_INSTALL_PREFIX=. \
    -G "${GENERATOR}" \
    ..
cmake --build . --config "${CONFIGURATION}"
cmake --build . --target install --config "${CONFIGURATION}"
