Adds install and build bash-script

This commit is contained in:
Erwin Nindl 2021-06-28 00:09:59 +02:00
parent 09638b8f90
commit ac3119de07
2 changed files with 33 additions and 0 deletions

24
build.sh Executable file
View File

@ -0,0 +1,24 @@
#!/bin/bash
set -e
## build software
rm -rf build
mkdir build && cd build
cmake .. -D BUILD_TESTING=ON
cmake --build .
## run tests
ctest -V
## run the executable
./src/main \
../recordings/10732.pb \
../recordings/10740.pb \
../recordings/10742.pb \
grid.json
echo ""
echo "result written to grid.json"

9
install_deps.sh Normal file
View File

@ -0,0 +1,9 @@
#!/bin/bash
set -e
## install required software
apt update
apt install build-essential cmake
apt install protobuf-compiler libprotobuf-c-dev