2019-02-14 10:30:42 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
2019-03-13 17:15:01 +00:00
|
|
|
[ -x "$(command -v make)" ] && GENERATOR="Unix Makefiles"
|
2019-02-14 10:30:42 +00:00
|
|
|
[ -x "$(command -v ninja)" ] && GENERATOR=Ninja
|
2019-03-13 17:15:01 +00:00
|
|
|
if [ "x${GENERATOR}" = "x" ]; then
|
|
|
|
echo "Build command is not found"
|
|
|
|
exit 1
|
|
|
|
fi
|
2019-02-14 10:30:42 +00:00
|
|
|
PROJECT=$(grep -i "^Project" "$(dirname -- "$(dirname -- "$(pwd)")")/CMakeLists.txt" | awk -F'[()]' '{print $2}')
|
|
|
|
|
|
|
|
"$(dirname $0)/cmake.sh" -g "${GENERATOR}" -f -t Debug
|
|
|
|
|