mirror of
https://github.com/falk-werner/webfuse-provider
synced 2024-10-27 20:44:10 +00:00
b19a54d2f9
git-subtree-dir: build/dobuild git-subtree-split: b017db7c22e7c0ca6cee3f0f5ac1dd50f3b68eb9
20 lines
504 B
Bash
Executable File
20 lines
504 B
Bash
Executable File
#!/bin/sh
|
|
|
|
. DoBuildFiles/generic.properties
|
|
. DoBuildFiles/cmake.properties
|
|
|
|
camelcase() {
|
|
echo "$@" | sed -r 's/(^|_)([a-z])/\U\2/g'
|
|
}
|
|
|
|
if [ -f "${CMAKE_TOOLCHAIN_FILE}" ]; then
|
|
set -- "$@" "-DCMAKE_TOOLCHAIN_FILE=${CMAKE_TOOLCHAIN_FILE}"
|
|
fi
|
|
if [ -n "$BUILD_TESTING" ]; then
|
|
set -- "$@" "-DBUILD_TESTING=ON"
|
|
fi
|
|
set -- "$@" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON "-DCMAKE_BUILD_TYPE=$(camelcase "$VARIANT")" "-G${CMAKE_GENERATOR}" "-B${PWD}" "$PROJECTDIR"
|
|
[ -z "$VERBOSE" ] || set -x
|
|
|
|
exec cmake "$@"
|