-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathrun-cmake.sh
26 lines (21 loc) · 903 Bytes
/
run-cmake.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Copyright 2019-present, Joseph Garnier
# All rights reserved.
#
# This source code is licensed under the license found in the
# LICENSE file in the root directory of this source tree.
# =============================================================================
# What Is This?
# -------------
# See README file in the root directory of this source tree.
#!/bin/bash
readonly WORKSPACE_DIR=$(pwd)
declare -r BUILD_DIR="${WORKSPACE_DIR}/build"
declare -r CMAKE_DIR="${WORKSPACE_DIR}/cmake"
declare -r SOLUTION_DIR="${BUILD_DIR}"
cmake --log-level=TRACE -S "${WORKSPACE_DIR}" --preset "x64-Release-Linux-GCC"
# Instead use this command to debug your CMakeLists, and comment the previous one.
# cmake --debug-output --trace-expand --log-level=TRACE -S "${WORKSPACE_DIR}" --preset "x64-Release-Linux-GCC"
if [[ "${?}" -eq 0 ]]; then
echo -e "\nThe solution was successfully generated!"
fi
exit $?