A template repo to quickly start cpp projects using conan package manager and CMake.
- Change project name in
CMakeList.txt. - Update dependencies in
conanfile.txt.
Prime conan
conan profile detectRun
./setup.shor
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).
./run.shor
cmake --build buildconan install . --output-folder=build --build=missingBinary/app can be found in build/ which will be same as your project name.