refactor into lib/app

This commit is contained in:
Ole Algoritme
2024-03-24 11:18:17 +01:00
parent 372666ec8c
commit b329b7fdd9
11 changed files with 162 additions and 104 deletions

30
build_install.sh Executable file
View File

@@ -0,0 +1,30 @@
# build_install.sh
#!/bin/sh
echo "Creating build directory..."
mkdir -p build && cd build
echo "Running cmake..."
cmake ..
echo "Building..."
cmake --build . --config Release
echo ""
read -p "Do you want to SUDO CMAKE INSTALL libgddr6.a and gddr6 binary to /usr/local? (y/n) " answer
case $answer in
[Yy]*)
sudo cmake --install . --prefix /usr/local
echo "Installing..."
;;
[Nn]*)
echo "Skipping installation."
;;
*)
echo "Please answer y or n."
;;
esac
cd ..