From bafd673040d3200b0af1f3b6bd907556915243bf Mon Sep 17 00:00:00 2001 From: talksik Date: Fri, 4 Aug 2023 13:08:16 -0700 Subject: [PATCH] making the build and running work --- build.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100755 build.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..d6383ed --- /dev/null +++ b/build.sh @@ -0,0 +1,21 @@ +#!/bin/sh + +echo "Building project | making build folder, and going into it..." +rm -rf build && +mkdir build && +cd build && + +echo "Running cmake with build type Debug." +cmake -DCMAKE_PREFIX_PATH=$HOME/Qt/5.15.14/gcc_64/ -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug .. && + +echo "=====================" +echo "Running make..." +echo "=====================" + +make && + +echo "=====================" +echo "copy compile-commands.json to root folder..." +echo "=====================" +cd .. && +cp build/compile_commands.json .