Browse Source

Adds install and build bash-script

develop
Erwin Nindl 1 year ago
parent
commit
ac3119de07
  1. 24
      build.sh
  2. 9
      install_deps.sh

24
build.sh

@ -0,0 +1,24 @@ @@ -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

@ -0,0 +1,9 @@ @@ -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…
Cancel
Save