2020-10-02 20:46:23 +00:00
|
|
|
#!/bin/sh -ex
|
2018-07-08 17:26:57 +00:00
|
|
|
|
2020-05-01 21:01:47 +00:00
|
|
|
git clone -b release-1.10.0 https://github.com/google/googletest.git
|
2018-07-08 17:26:57 +00:00
|
|
|
cd googletest
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake \
|
2020-10-02 20:46:23 +00:00
|
|
|
-D CMAKE_C_COMPILER="${CC}" \
|
|
|
|
-D CMAKE_CXX_COMPILER="${CXX}" \
|
|
|
|
-D CMAKE_C_COMPILER_LAUNCHER=ccache \
|
|
|
|
-D CMAKE_CXX_COMPILER_LAUNCHER=ccache \
|
2018-07-08 17:26:57 +00:00
|
|
|
-D CMAKE_BUILD_TYPE="${CONFIGURATION}" \
|
2020-10-02 20:46:23 +00:00
|
|
|
-D CMAKE_INSTALL_PREFIX="${GOOGLETEST_DIR}" \
|
2018-07-08 17:26:57 +00:00
|
|
|
-G "${GENERATOR}" \
|
|
|
|
..
|
2020-10-02 20:46:23 +00:00
|
|
|
cmake --build . --config "${CONFIGURATION}" -- -j $(nproc)
|
|
|
|
cmake --install . --config "${CONFIGURATION}"
|