| 1 | #!/bin/shscip-shell filesystem . . `/bin/sh`. |
| 2 | |
| 3 | # To create a debug build, run `cmake -D CMAKE_BUILD_TYPE=Debug .` instead |
| 4 | |
| 5 | if command -v ninja > /dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 6 | echoscip-shell system . . echo. "Build using Ninja" |
| 7 | cmakescip-shell system . . cmake. -GNinja . |
| 8 | ninjascip-shell system . . ninja. |
| 9 | else |
| 10 | echoscip-shell system . . echo. "Build using default makefiles" |
| 11 | cmakescip-shell system . . cmake. . |
| 12 | makescip-shell system . . make. |
| 13 | fi |