mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 12:30:05 +00:00
Add new utility setup scripts
This commit is contained in:
parent
9c486d5018
commit
102650e936
26 changed files with 281 additions and 143 deletions
23
tools/lib/run-cmake-configure.sh
Normal file
23
tools/lib/run-cmake-configure.sh
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
#!/bin/bash
|
||||
script_dir="$(dirname "$(readlink -f "$0")")"
|
||||
|
||||
cmake_args=(
|
||||
-B "${build_dir}"
|
||||
-S "${script_dir}/../.."
|
||||
-G "${generator}"
|
||||
-DCMAKE_PREFIX_PATH="${qt_base}/${qt_version}/${qt_arch}"
|
||||
-DCMAKE_PROJECT_TOP_LEVEL_INCLUDES="${script_dir}/../../external/cmake-conan/conan_provider.cmake"
|
||||
-DCONAN_HOST_PROFILE="${conan_profile}"
|
||||
-DCONAN_BUILD_PROFILE="${conan_profile}"
|
||||
)
|
||||
|
||||
if [[ -n "${build_type}" ]]; then
|
||||
cmake_args+=(
|
||||
-DCMAKE_BUILD_TYPE="${build_type}"
|
||||
-DCMAKE_CONFIGURATION_TYPES="${build_type}"
|
||||
-DCMAKE_INSTALL_PREFIX="${build_dir}/${build_type}/supercell-wx"
|
||||
)
|
||||
fi
|
||||
|
||||
mkdir -p "${build_dir}"
|
||||
cmake "${cmake_args[@]}"
|
||||
Loading…
Add table
Add a link
Reference in a new issue