|
|
|
@ -4,9 +4,14 @@ set -xeo pipefail
|
|
|
|
|
|
|
|
|
|
free -m
|
|
|
|
|
|
|
|
|
|
BUILD_UNITTESTS=OFF
|
|
|
|
|
BUILD_BENCHMARKS=OFF
|
|
|
|
|
|
|
|
|
|
if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
|
|
|
|
export GOOGLETEST_DIR="${PWD}/googletest/build/install"
|
|
|
|
|
env GENERATOR='Unix Makefiles' CONFIGURATION=Release CI/build_googletest.sh
|
|
|
|
|
BUILD_UNITTESTS=ON
|
|
|
|
|
BUILD_BENCHMARKS=ON
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
declare -a CMAKE_CONF_OPTS=(
|
|
|
|
@ -43,7 +48,8 @@ if [[ "${BUILD_TESTS_ONLY}" ]]; then
|
|
|
|
|
-DBUILD_ESSIMPORTER=OFF \
|
|
|
|
|
-DBUILD_OPENCS=OFF \
|
|
|
|
|
-DBUILD_WIZARD=OFF \
|
|
|
|
|
-DBUILD_UNITTESTS=ON \
|
|
|
|
|
-DBUILD_UNITTESTS=${BUILD_UNITTESTS} \
|
|
|
|
|
-DBUILD_BENCHMARKS=${BUILD_BENCHMARKS} \
|
|
|
|
|
-DGTEST_ROOT="${GOOGLETEST_DIR}" \
|
|
|
|
|
-DGMOCK_ROOT="${GOOGLETEST_DIR}" \
|
|
|
|
|
..
|
|
|
|
|