Skip to content
 
 

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CPP conan template

A template repo to quickly start cpp projects using conan package manager and CMake.

Configure

  1. Change project name in CMakeList.txt.
  2. Update dependencies in conanfile.txt.

Setup

Prime conan

conan profile detect

Run

./setup.sh

or

conan install . --output-folder=build --build=missing
cmake -S . -B build -DCMAKE_TOOLCHAIN_FILE=build/conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release -G Ninja
ln -s compile_commands.json ../compile_commands.json # link compile_commands.json to home dir (optinal)

Note: Omit ln -s ... for windows manually copy compile_commands (AFAIK ln is not supported on windows).

Compile

After file changes

./run.sh

or

cmake --build build

After dependencies changes

conan install . --output-folder=build --build=missing

Binary

Binary/app can be found in build/ which will be same as your project name.

About

C++ conan cmake project template with ninja

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages