sluzhynskyi / cpp-template

A template for C++ project with CI pipeline

Home Page:https://chernetskyi.github.io/cpp-template/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Lab 2 Option 3: Adder

Team

Prerequisites

  • C++ compiler - needs to support C++17 standard
  • CMake 3.15+

Dependencies (such as development libraries) can be found in the dependencies folder in the form of the text files with package names for different package managers.

Installing

  1. Clone the project.

    git clone git@github.com:chernetskyi/cpp-template.git
  2. Install required packages.

    On Ubuntu:

    [[ -r dependencies/apt.txt ]] && sed 's/#.*//' dependencies/apt.txt | xargs sudo apt-get install -y

    On MacOS:

    [[ -r dependencies/homebrew.txt ]] && sed 's/#.*//' dependencies/homebrew.txt | xargs brew install

    Use Conan on Windows.

  3. Build.

    cmake -Bbuild
    cmake --build build

Usage

add [a] [b]

If less than two numbers provided, zeroes are used instead. If more - an error occurs.

Help flags -h/--help support is available.

About

A template for C++ project with CI pipeline

https://chernetskyi.github.io/cpp-template/


Languages

Language:CMake 94.7%Language:Shell 2.7%Language:C++ 2.7%