Initial import.

This commit is contained in:
2023-10-18 18:17:43 -07:00
commit 48ca042005
13 changed files with 492 additions and 0 deletions

20
cmake-build-and-test.sh Executable file
View 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