Luna/tools/build.sh
2022-11-13 12:20:53 +01:00

17 lines
212 B
Bash
Executable File

#!/usr/bin/env bash
set -e
source $(dirname $0)/env.sh
cd $LUNA_ROOT
tools/setup.sh
#tools/install-headers.sh
mkdir -p build
if [ "$USE_NINJA" = "1" ]
then
cmake -S . -B build -G Ninja
fi
cmake --build build