Git Product home page Git Product logo

estela-cli-cplusplus's Introduction

C++ Project Template

A simple template repository to start a new C++ project using CMake.

Click on the green Use this template button to get started.

If you are looking for more advanced features (such as Python bindings or integration with sites like ReadTheDocs, codecov, sonarcloud or PyPI) take a look at our C++ Project Cookiecutter

Contents

This example project contains the adder library, an application adder_app which uses this library, and a test-suite which tests the library.

Any pull-requests or commits to the repository trigger GitHub Actions, which will compile the code and run the tests.

Project structure:

  • src
    • the adder library source code
    • this is where the meat of the project is: the implementation
  • include/adder
    • the adder library headers
    • the public interface of the library
  • app
    • the application which uses the adder library
  • tests
    • the test code
    • each x.cpp file has a corresponding x_t.cpp file here with tests
  • ext
    • external libraries, e.g. Catch2 testing framework
  • .github/workflows/ci.yml
    • the GitHub Actions configuration

Compiling

To compile the project and run the tests:

mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release
make
make test

Documentation

If you have Doxygen installed you can also build the documentation by enabling the BUILD_DOCS CMake option, and then running make doxygen:

cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_DOCS=ON
make doxygen

This will generate the documentation in the html folder.

estela-cli-cplusplus's People

Contributors

elrull avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.