bertcarnell Template Library (bclib) for C++ utility headers
Linux & MacOS | Windows | Code Coverage | Github Actions |
---|---|---|---|
Install cmake
for cross-platform make, and lcov
for coverage statistics.
sudo apt-get install cmake lcov
cmake . -Bbuild -DCMAKE_BUILD_TYPE=Debug -DBUILD_TYPE=Coverage
cmake --build build
./build/bclibtest/bclibtest
cd build
lcov --directory bclibtest --capture --output-file bclibtest.info
lcov --remove bclibtest.info 'bclibtest/*' '/usr/*' --output-file bclibtest.clean.info
genhtml -o coverage bclibtest.clean.info
- Install Visual Studio Community 2017 with visual c++ support.
- Install CMake for Windows
Open a Windows PowerShell window or Windows command prompt (cmd) to run these commands
cmake . -Bbuild -G "Visual Studio 15 2017 Win64"
Open Visual Studio. File -> Open -> Project/Solution -> bcblib.sln
- right click on ALL_BUILD -> build
- right click on bcblibtest -> Debug -> Start New Instance
cmake --build build --target ALL_BUILD --config Release
./build/bclibtest/Release/bclibtest.exe