Skip to content
Public template

About

Template for conan + cmake c++ applications.

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

10 Commits

Folders and files

Repository files navigation

project-template

Template for cmake c++ projects.

Installation:

Requires Conan and CMake. They can be installed by:

pip install conan
pip install cmake

Build your app in debug mode:

mkdir cmake-build-debug
cd cmake-build-debug
conan install .. --build=missing
cmake -DCMAKE_BUILD_TYPE=Debug -DENABLE_TESTING=ON -DENABLE_BENCHMARKS=ON ..
cmake --build .  

Build your app in release mode:

mkdir cmake-build-release
cd cmake-build-release
conan install .. --build=missing
cmake -DCMAKE_BUILD_TYPE=Release -DENABLE_TESTING=OFF -DENABLE_BENCHMARKS=OFF ..
cmake --build .  

Run template:

cd <build folder>
./TEMPLATE <program_options>

Usage:

  • Add external dependencies via conan package manager
  • All unit tests must be in tests folder
  • All benchmarks must be in benchmarks folder
  • All headers must be in include folder
  • All sources must be in src folder

About

Template for conan + cmake c++ applications.

Topics

Resources

Stars

0 stars

Watchers

2 watching

Forks

Contributors

Languages