c-arithmetic project

cmake Coveralls Documentation Status

Installation

Use brew and not apt if you are on macos!

$ sudo apt install cmake gcc lcov cppcheck python-pip valgrind flawfinder doxygen dot
$ git clone https://github.com/chdemko/c-arithmetic.git
$ [sudo] pip install [--user] -r c-arithmetic/docs/requirements.txt

Usage

Compilation

$ mkdir build
$ cd build
$ cmake ../c-arithmetic \
    -DBUILD_COVERAGE=1 \
    -DBUILD_HTML_COVERAGE=1 \
    -DUSE_VALGRIND=1 \
    -DRUN_CPPCHECK=1
$ make

Run test and code coverage

$ make test
$ make coverage
$ make html-coverage

Check style

$ make cclint

Run flaw finder

$ make flawfinder

Build the docs

$ make docs

Create archives

$ make package
$ make package_source

Install package

$ make install