From 65b341b612a9d3d32a055c697f96400983981845 Mon Sep 17 00:00:00 2001 From: friendlyanon Date: Wed, 6 Jan 2021 01:36:29 +0000 Subject: [PATCH] Add script to install doctest --- script/ci_install_deps.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 script/ci_install_deps.sh diff --git a/script/ci_install_deps.sh b/script/ci_install_deps.sh new file mode 100755 index 0000000..0b8a4c5 --- /dev/null +++ b/script/ci_install_deps.sh @@ -0,0 +1,17 @@ +#!/bin/bash + +JOBS=4 +BUILD_TYPE=Debug + +set -eux + +git clone https://github.com/onqtam/doctest -b 2.4.4 --depth 1 + +cmake -S doctest -B doctest/build \ + -D CMAKE_BUILD_TYPE=${BUILD_TYPE} \ + -D DOCTEST_WITH_MAIN_IN_STATIC_LIB=NO \ + -D DOCTEST_WITH_TESTS=NO + +cmake --build doctest/build --config ${BUILD_TYPE} --target install -j ${JOBS} + +rm -rf doctest