Skip to content

alexeiz/advent2023

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code 2023

Configure and build the project

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

Run puzzle solvers

# day 1 puzzle 2
build/advent23 1.2