Initial import.
This commit is contained in:
20
cmake-build-and-test.sh
Executable file
20
cmake-build-and-test.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
######################################################################
|
||||
# @author : kyle (kyleimap.cc)
|
||||
# @file : setup-cmake
|
||||
# @created : Wednesday Oct 18, 2023 04:24:21 PDT
|
||||
#
|
||||
# @description : Prepare a CMake build environment, build, and test.
|
||||
######################################################################
|
||||
|
||||
set -eux
|
||||
|
||||
if [ "${USE_CLANG:-}" == "yes" ]
|
||||
then
|
||||
export CC=$(command -v clang)
|
||||
export CXX=$(command -v clang++)
|
||||
fi
|
||||
|
||||
mkdir -p build && cd build
|
||||
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .. && make all test && ctest
|
||||
Reference in New Issue
Block a user