Template c++ project with conan setup
- Install conan 2.0
- [Optional] Create conan profile if you haven't yet:
conan profile detect --force
. This will create new default profile for conan in your system. - Install CMake of version not less than the one that is specified in CMakeLists.txt
cd
to the root folder of the projectconan install . --output-folder=build --build=missing
cd build
cmake .. -DCMAKE_TOOLCHAIN_FILE=conan_toolchain.cmake -DCMAKE_BUILD_TYPE=Release
cmake --build .
./conan_template
Now make a tea and eat some cookies. You're awesome.