Git Product home page Git Product logo

cpp-project-template-1's Introduction

Cpp-Project-Template

A C++ project template uses CMake with Doxygen, Sphinx integrated

Used for

Two main things when starting a new Cpp project

  • Dependency
  • Documentation

And of course, a general purpose Cpp project structure

Features

Prerequisite

Basically you just need CMake and a C++ compiler.

If you want to take the way provided by this repo, you also need

Installation

Use this template

You can click the Use this template button to create your new Github repository

Clone this repository

  • clone this repository
    > git clone https://github.com/WilliamCodeBox/Cpp-Project-Template.git
  • use the name of your greate Cpp project
    > mv Cpp-Project-Template NameOfYourCppProject
  • start over the version control
    > cd NameOfYourCppProject
    > rm -rf .git
    > git init

Usage

  • Environment for documentation

    Suggestion: create a virtural python environment using conda

    • TODO: may be a python/bash script to automatically run the following steps
    • install required python packages

      > cd docs
      > pip install -r requirements.txt
    • change relavent content within config.json

      • project = 'cpp-project-template'
      • author = 'WilliamCodeBox'
      • release = '1.0.0'
      • sourceDir = "../include"
      • rootFileTitle = "Library API"
    • Generate the docs

      > make html
  • Third-party C++ libraries

    • search and install the libs with the help of vcpkg
      > ./vcpkg search gtest
      > ./vcpkg install gtest
    • find the libs within CMakeLists.txt

Documentation Customization

CMake Doxygen Config

References and Thanks to

cpp-project-template-1's People

Contributors

leroylau avatar williamcodebox avatar

Watchers

 avatar  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.