ungroup/ungroup_game

View on GitHub
scripts/build.sh

Summary

Maintainability
Test Coverage
#!/bin/bash

if [[ $(which ninja) ]]; then
    echo "Detected Ninja is installed. Using Ninja."
    cmake -GNinja -S . -B build
    ninja -C build
else
    echo "Ninja not found. Using CMake directly."
    cmake -S . -B build
    cmake --build build -- -j
fi