Adds install and build bash-script
This commit is contained in:
parent
09638b8f90
commit
ac3119de07
24
build.sh
Executable file
24
build.sh
Executable 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
9
install_deps.sh
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user