-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmakecppio.sh
More file actions
executable file
·38 lines (33 loc) · 874 Bytes
/
makecppio.sh
File metadata and controls
executable file
·38 lines (33 loc) · 874 Bytes
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
27
28
29
30
31
32
33
34
35
36
37
38
#!/bin/bash
echo "-------------------------------------"
echo "To run cppio makecppio.sh"
echo "-------------------------------------"
VERBOSE=false
while [[ "$#" -gt 0 ]]; do
case "$1" in
-c|--clean)
CLEAN=true
shift
;;
-v|--verbose)
VERBOSE=true
shift
;;
*)
shift
;;
esac
done
if [[ "$CLEAN" = true ]]; then
rm -rf build/cppio
fi
if [[ "$VERBOSE" = true ]]; then
cmake -S . -B build/cppio -D CMAKE_BUILD_TYPE=Debug --trace-expand
else
cmake -S . -B build/cppio -D CMAKE_BUILD_TYPE=Debug
fi
cmake --build build/cppio --parallel $(nproc)
cmake --install build/cppio --prefix build/cppio/cppio_install_root
echo "-------------------------------------"
echo "Finish cppio makecppio.sh"
echo "-------------------------------------"