Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A simple starting point for a C++ repository based on CMake and Conan

Notifications You must be signed in to change notification settings

gabrielheinrich/cpp-starter-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

C++ Starter Template

A simple starting point for a C++ repository based on CMake and Conan. Unit tests are setup using gtest.

A static library called example is setap as well as a main executable using the poco C++ library (downloaded through conan).

Requirements

  • C++ Compiler (Clang, GCC, XCode, Visual Studio...)
  • CMake >= 3.10
  • conan >= 1.40.3

Configuration and building

All these commands should be run from a fresh sub directory (e.g. /build) which is in .gitignore

mkdir build
cd build

Download and install dependencies with conan

conan install ..

Build all targets and run the tests

conan build ..

You can also use cmake directly to build all or specific targets

cmake --build .
# or
cmake --build . --target main

Run the main executable

./bin/main

About

A simple starting point for a C++ repository based on CMake and Conan

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published