cyclonedds/scripts/build.sh
Prasanna Bhat 8fc3f4bc71 Add build scripts & docker scripts
Signed-off-by: Prasanna Bhat <prasanna.yoga@gmail.com>
2020-05-12 06:48:09 +05:30

15 lines
353 B
Bash
Executable file

#!/bin/bash
set -e
# It is assumed that this script is called from the root of the project
WORKSPACE=$(pwd)
echo "WORKSPACE is $WORKSPACE"
CYCLONEDDS_INSTALL_PREFIX=$WORKSPACE/build/install/
rm -rf build/
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$CYCLONEDDS_INSTALL_PREFIX -DBUILD_IDLC=ON ..
cmake --build .
cmake --build . --target install