Skip to content
/ cpp-project-template Public template

A general C++ project template, using a Makefile with building, running and testing capabilities.

Notifications You must be signed in to change notification settings

0nyr/cpp-project-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cpp-project-template

A general C++ project template, using a Makefile with building, running and testing capabilities.

It includes:

  • a Makefile with build and run rules, with GDB and config flags already present.
  • a project structure
  • .vscode folder with the necessary config files to use VSCode code correction and the integrated GDB debugger.

VSCode extentions

If you use VSCode:

  • ms-vscode.cpptools: extention comming with GDB debugger integration.

NixOs flake

This template supports NixOs dev environment. Update the flake.lock file with nix flake update, and enter dev environment with nix develop.

Getting Started

Use the Github template

First, click the green Use this template button near the top of this page. This will take you to Github's Generate Repository page. Fill in a repository name and short description, and click Create repository from template. This will allow you to create a new repository in your Github account, prepopulated with the contents of this project. Now you can clone the project locally and get to work!

git clone https://github.com/<user>/<your_new_repo>.git
  1. Inside the cloned repo folder, make the necessary directories for compilation with make dirs. Then build and start coding/debugging.
  2. Compile main with make build.
  3. Compile test with make built_test.
  4. Run main with make run.
  5. Run test with make run_test.

About

A general C++ project template, using a Makefile with building, running and testing capabilities.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published