-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathrun-cmake.sh
More file actions
23 lines (18 loc) · 782 Bytes
/
run-cmake.sh
File metadata and controls
23 lines (18 loc) · 782 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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)
cmake -S "${WORKSPACE_DIR}" --preset "x64-Release-Linux-GCC"
# To debug your CMakeLists.txt, use the command below and comment the previous one
# cmake --debug-output --trace-expand --log-level=TRACE -S "${WORKSPACE_DIR}" --preset "x64-Release-Linux-GCC" --trace-redirect=output.log
if [[ "${?}" -eq 0 ]]; then
echo -e "\nThe solution was successfully generated!"
fi
exit $?