https://github.com/bertcarnell/bclib
BertCarnell Template Library (bclib) for C++ utility headers
https://github.com/bertcarnell/bclib
c-plus-plus utility-library
Last synced: 3 months ago
JSON representation
BertCarnell Template Library (bclib) for C++ utility headers
- Host: GitHub
- URL: https://github.com/bertcarnell/bclib
- Owner: bertcarnell
- License: lgpl-3.0
- Created: 2013-11-24T20:25:11.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2022-03-19T00:01:29.000Z (about 3 years ago)
- Last Synced: 2023-03-25T13:05:35.529Z (about 2 years ago)
- Topics: c-plus-plus, utility-library
- Language: C++
- Size: 94.7 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
bclib
=====bertcarnell Template Library (bclib) for C++ utility headers
|Linux & MacOS|Windows|Code Coverage|Github Actions|
|:---:|:---:|:---:|:---:|
|[](https://travis-ci.org/bertcarnell/bclib)|[](https://ci.appveyor.com/project/bertcarnell/bclib)|[](https://codecov.io/gh/bertcarnell/bclib)||## Used in packages...
- [oa](https://github.com/bertcarnell/oa)
- [lhslib](https://github.com/bertcarnell/lhslib)
- [lhs](https://github.com/bertcarnell/lhs)## Developing using CMake on Windows and Linux
### Ubuntu Linux
#### Prereqs
Install `cmake` for cross-platform make, and `lcov` for coverage statistics.
```
sudo apt-get install cmake lcov
```#### CMake
```
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
```### Windows + Visual Studio
#### Prereqs
- Install [Visual Studio Community 2017](https://visualstudio.microsoft.com/vs/community/) with visual c++ support.
- Install [CMake](https://cmake.org/) for Windows#### CMake
Open a Windows PowerShell window or Windows command prompt (cmd) to run these commands
```
cmake . -Bbuild -G "Visual Studio 15 2017 Win64"
```#### Compile Option 1
Open Visual Studio. File -> Open -> Project/Solution -> bcblib.sln
- right click on ALL_BUILD -> build
- right click on bcblibtest -> Debug -> Start New Instance#### Compile Option 2
```
cmake --build build --target ALL_BUILD --config Release
./build/bclibtest/Release/bclibtest.exe
```