Install dependencies:
conan install . --output-folder=build --build=missing -s build_type=Debug
Add the default preset to the generated CMakeUserPresets.json on the same level as "include"
:
"configurePresets": [
{
"name": "default",
"inherits": "conan-debug",
"cacheVariables": {
"CMAKE_EXPORT_COMPILE_COMMANDS": {
"type": "BOOL",
"value": "TRUE"
}
}
}
],
"buildPresets": [
{
"name": "default",
"configurePreset": "default"
}
],
"testPresets": [
{
"name": "default",
"configurePreset": "default"
}
]
Configure and build:
cmake --preset default .
cmake --build build
# day 1 puzzle 2
build/advent23 1.2