12 lines
217 B
Bash
12 lines
217 B
Bash
|
#!/bin/sh
|
||
|
##
|
||
|
|
||
|
suffix=Debug
|
||
|
cwd=`pwd`
|
||
|
for i in $*; do
|
||
|
if echo "$i" | grep 'CMAKE_BUILD_TYPE='; then
|
||
|
suffix=`echo $i | sed 's/-DCMAKE_BUILD_TYPE=//'`
|
||
|
fi
|
||
|
done
|
||
|
mkdir -p build/$suffix && cd build/$suffix
|
||
|
cmake $* $cwd
|