Advent of Code 2021 solutions in C++
- Install a C++ compiler, cmake, and vcpkg
- Clone this repo. Change into a day's directory.
- Run
cmake -B [build directory] -S . -DCMAKE_TOOLCHAIN_FILE="[path to vcpkg]/scripts/buildsystems/vcpkg.cmake"
. Common choices for[build directory]
arebuild
orout
. cmake will create the directory if it doesn't exist. - Run
cmake --build [build directory]
- Run the executables in
[build directory]
. Make sure the*.txt
input files can be found.