From 43ece5b6ffbca42ec365cc91d43c477a629a167f Mon Sep 17 00:00:00 2001 From: Sean Bryan Date: Tue, 23 Jan 2024 11:34:52 +1100 Subject: [PATCH] Install binary in project root directory --- .gitignore | 1 + build.bash | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 8e5ce45e2d..492d9980f9 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ *.mod *.o build +bin diff --git a/build.bash b/build.bash index 7aea4bc7ea..ba39695ea4 100755 --- a/build.bash +++ b/build.bash @@ -74,5 +74,6 @@ if [[ -n $verbose ]]; then cmake_build_args+=(-v) fi -cmake -S . -B build "${cmake_args[@]}" -cmake --build build -j 4 "${cmake_build_args[@]}" +cmake -S . -B build "${cmake_args[@]}" &&\ +cmake --build build -j 4 "${cmake_build_args[@]}" &&\ +cmake --install build --prefix .