LucidCube/build-dev.sh

14 lines
283 B
Bash
Executable File

#!/bin/sh -e
if [ -f CMakeLists.txt ]; then
mkdir -p build
cd build
fi
if ! [ -f CMakeCache.txt ]; then
cmake -DCMAKE_BUILD_TYPE=Debug -DUNITY_BUILDS=OFF -DWHOLE_PROGRAM_OPTIMISATION=OFF -DCMAKE_EXPORT_COMPILE_COMMANDS=ON ..
cp -v compile_commands.json ../
fi
make -j$(nproc)