Skip to content
Snippets Groups Projects
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
build.sh 874 B
#!/bin/bash

# set link for config files if not already existing
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEST=$DIR/CarConfig
LINK=$HOME/CarConfig
if [ ! -e $LINK ]; then
  echo "ln -s $DEST $HOME"
  ln -s $DEST $HOME
fi

# install NetworkingLib
cd catkin_ws/src/NetworkingLib/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
make install

# install PlatoonProtocolLib
cd ../../PlatoonProtocolLib/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
make install

# install PC2CarLib
cd ../../PC2CarLib/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
make install

# build MessageLib scripts
cd ../../MessageLib/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
make install

# build VeloxProtocolLib
cd ../../VeloxProtocolLib/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
make install

# build ROS stuff
cd ../../../
catkin_make