From ac3119de07cfc290a0eb667b9c22585905784546 Mon Sep 17 00:00:00 2001 From: Erwin Nindl Date: Mon, 28 Jun 2021 00:09:59 +0200 Subject: [PATCH] Adds install and build bash-script --- build.sh | 24 ++++++++++++++++++++++++ install_deps.sh | 9 +++++++++ 2 files changed, 33 insertions(+) create mode 100755 build.sh create mode 100644 install_deps.sh diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..cf331dd --- /dev/null +++ b/build.sh @@ -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" + diff --git a/install_deps.sh b/install_deps.sh new file mode 100644 index 0000000..4b02d03 --- /dev/null +++ b/install_deps.sh @@ -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 +