Skip to content
Snippets Groups Projects
build.sh 841 B
Newer Older
# set link for config files if not already existing
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
DEST=$DIR/CarConfig
LINK=$HOME/CarConfig
if [ ! -L $LINK ]; then
  echo "ln -s $DEST $HOME"
  ln -s $DEST $HOME
fi

# install NetworkingLib
Hoop77's avatar
Hoop77 committed
cd catkin_ws/src/NetworkingLib/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
sudo make install

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

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

# build PC scripts
cd ../../PC/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
make

# build VeloxLib
cd ../../VeloxLib/
mkdir cmake-build-debug
cd cmake-build-debug
cmake ..
make

# build ROS stuff
Hoop77's avatar
Hoop77 committed
cd ../../../
catkin_make