2020-10-02 22:46:23 +02:00
|
|
|
#!/bin/sh -ex
|
2018-07-08 20:26:57 +03:00
|
|
|
|
2020-05-01 23:01:47 +02:00
|
|
|
git clone -b release-1.10.0 https://github.com/google/googletest.git
|
2018-07-08 20:26:57 +03:00
|
|
|
cd googletest
|
|
|
|
mkdir build
|
|
|
|
cd build
|
|
|
|
cmake \
|
2020-10-02 22:46:23 +02: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 20:26:57 +03:00
|
|
|
-D CMAKE_BUILD_TYPE="${CONFIGURATION}" \
|
2020-10-02 22:46:23 +02:00
|
|
|
-D CMAKE_INSTALL_PREFIX="${GOOGLETEST_DIR}" \
|
2018-07-08 20:26:57 +03:00
|
|
|
-G "${GENERATOR}" \
|
|
|
|
..
|
2020-10-02 22:46:23 +02:00
|
|
|
cmake --build . --config "${CONFIGURATION}" -- -j $(nproc)
|
|
|
|
cmake --install . --config "${CONFIGURATION}"
|