Project setup
This commit is contained in:
32
scripts/build.sh
Executable file
32
scripts/build.sh
Executable file
@@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
|
||||
cd ../
|
||||
mkdir -p build
|
||||
cd build || exit
|
||||
mkdir -p debug
|
||||
mkdir -p release
|
||||
mkdir -p relwithdeb
|
||||
|
||||
cd debug || exit
|
||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Debug &
|
||||
cd ../
|
||||
cd release || exit
|
||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=Release &
|
||||
cd ../
|
||||
cd relwithdeb || exit
|
||||
cmake ../../ -G Ninja -DCMAKE_BUILD_TYPE=RelWithDebInfo &
|
||||
cd ../
|
||||
|
||||
wait
|
||||
|
||||
cd debug || exit
|
||||
ninja &
|
||||
cd ../
|
||||
cd release || exit
|
||||
ninja &
|
||||
cd ../
|
||||
cd relwithdeb || exit
|
||||
ninja &
|
||||
cd ../..
|
||||
|
||||
wait
|
||||
Reference in New Issue
Block a user