-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.sh
19 lines (17 loc) · 795 Bytes
/
build.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env bash
# Debug Build
echo "
**************************************************
Starting Debug Build
**************************************************"
cmake -DBUILD_TESTING=ON -DCODE_COVERAGE=OFF -DSTATIC_ANALYSIS=OFF -DCMAKE_BUILD_TYPE=Debug . || exit 1
cmake --build . --clean-first -- -j $(nproc) || exit 1
ctest --output-on-failure --VV --extraVerbose -j $(nproc) -C Debug . || exit 1
# Release Build
echo "
**************************************************
Starting Release Build
**************************************************"
cmake -DBUILD_TESTING=ON -DCODE_COVERAGE=OFF -DSTATIC_ANALYSIS=OFF -DCMAKE_BUILD_TYPE=Release . || exit 1
cmake --build . --clean-first -- -j $(nproc) || exit 1
ctest --output-on-failure --VV --extraVerbose -j $(nproc) -C Release . || exit 1