Skip to content

s-martin/Sugarpp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

139 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sugarcpp

CI-Linux CI-Windows CodeQL Microsoft C++ Code Analysis

Coverage Status

Sugarcpp is a small library, which adds syntactic sugar to C++ to make your life easier.

Compliation

CMake is used for compilation. There are two things to build: the library and the unit tests. Here is the short version of how to build and test everything:

Windows

Using vcpkg to install dependencies is recommended.

  1. Clone or download the repository

  2. Install dependencies: vcpkg install boost-test boost-log xerces-c

Visual Studio 2019 or later

  1. Open path in Visual Studio as CMake project.

Previous versions of Visual Studio

  1. md build && cd build

  2. cmake ../ -DCMAKE_TOOLCHAIN_FILE=<path to vcpkg>/scripts/buildsystems/vcpkg.cmake

  3. Open created Visual Studio solution file in build directory

Linux (Ubuntu)

  1. sudo apt install libboost-test-dev libboost-log-dev libxerces-c-dev

If you want to use code coverage:

  1. sudo apt install lcov gcovr

Configure and build:

  1. mkdir build && cd build

  2. cmake ../

  3. make

Run unit tests:

  1. make test

TODO HERE

Run unit tests and create coverage:

  1. make GAlib_lcov

  2. make GAlib_gcov

Building shared libraries

To build shared libraries append -DBUILD_SHARED_LIBS:BOOL=ON to the above cmakecommand.

See also https://cmake.org/cmake/help/v3.15/variable/BUILD_SHARED_LIBS.html in the CMake docs.

About

Sugarcpp is a small library, which adds syntactic sugar to C++ to make your life easier.

Topics

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors