33 lines
460 B
Bash
Executable File
33 lines
460 B
Bash
Executable File
#!/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
|