1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2024-12-29 12:20:41 +00:00
OpenMW/CI/build_googletest.sh

18 lines
515 B
Bash
Raw Normal View History

2020-10-02 20:46:23 +00:00
#!/bin/sh -ex
2018-07-08 17:26:57 +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}"