30 lines
333 B
Bash
Executable File
30 lines
333 B
Bash
Executable File
#!/bin/bash
|
|
|
|
if [[ $1 == "clean" ]]
|
|
then
|
|
rm -rf build
|
|
rm -rf binaries
|
|
rm -rf extern/bullet/build
|
|
exit
|
|
fi
|
|
|
|
currentDir=$(pwd)
|
|
threads=$(($(nproc)+1))
|
|
|
|
#building bullet
|
|
|
|
cd extern/bullet/
|
|
mkdir -p build
|
|
cd build
|
|
cmake ..
|
|
make -j$threads
|
|
|
|
cd $currentDir
|
|
|
|
#Building app
|
|
|
|
mkdir -p build
|
|
cd build
|
|
cmake ..
|
|
make -j$threads
|