Skip to content

blakekrpec/AdventOfCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Advent of Code – C++ Solutions

This project contains my solutions for Advent of Code, written in C++ and built with Clang, CMake, and Ninja. Ninja optional, I just use it for exporting compile_commands.json when on Windows, but don't need it for that on Linux, and just drop the -G Ninja flag.

Clone the repo

git clone https://github.com/blakekrpec/AdventOfCode.git

To build

mkdir build

cmake -S . -B build -G Ninja "-DDAY_TO_BUILD=src/years/<year>/<day>/<day>.cpp" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

e.g. cmake -S . -B build -G Ninja "-DDAY_TO_BUILD=src/years/2025/day01/day01.cpp" -DCMAKE_EXPORT_COMPILE_COMMANDS=ON

cmake --build build

To run

./build/<year>/<day>

e.g. ./build/2025/day01

To clean

rm build/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors