start 208 B

123456789101112
  1. #!/bin/bash
  2. set -e
  3. clear
  4. cd "$(dirname "$0")"
  5. export CMAKE_EXPORT_COMPILE_COMMANDS=true
  6. folder="build"
  7. if [ ! -e "$folder" ]; then
  8. cmake -B "$folder" -S . -G Ninja
  9. fi
  10. ninja -C "$folder"
  11. ./$folder/tetris