From d79d1ae86f0d81b99eafc35576267580ffb2b9a6 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Wed, 6 Mar 2024 21:47:04 -0800 Subject: [PATCH] updated the build_cpputest() shell function --- setup.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/setup.sh b/setup.sh index 0807c7d..f988a73 100755 --- a/setup.sh +++ b/setup.sh @@ -6,7 +6,7 @@ PKG_MNGR="" DEBIAN=0 FBSD=0 - +SYSINSTALL=0 DEV_UTILS="vim tmux fzf" @@ -58,10 +58,15 @@ create_project_symlinks () { build_cpputest () { git submodule add https://github.com/cpputest/cpputest.git - touch build - cd ./build - make - #TODO: finish this function + git sumodule status + cd ./cpputest/build + cmake ../ + + if [ SYSINSTALL -eq 1]; then + make install + else + make + fi }