build_googletest.sh 338 Bytes
Newer Older
elsid's avatar
elsid committed
1 2
#!/bin/sh -e

elsid's avatar
elsid committed
3
git clone -b release-1.8.1 https://github.com/google/googletest.git
elsid's avatar
elsid committed
4 5 6 7 8 9 10 11 12 13
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}"