nizos / aoc2022-cpp

Advent of Code 2022

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Advent of Code 2022

Requirements

Requires g++, cmake, and libgtest-dev.

Build and run

Build

The program can be built by running the following command.

mkdir -p build && cd build
cmake ../
make

Run

The program can be run after building it by running the following command.

# in ./build directory
./main

Test

Unit tests can be performed by running the following commands.

# in ./build directory
./runTests

Scripts

The following scripts are provided for convention.

Build & Run

./scripts/run.sh

Build & Test

./scripts/test.sh

Additional commands

Fix scripts mode

chmod +x scripts/*

About

Advent of Code 2022


Languages

Language:C++ 82.9%Language:CMake 15.7%Language:Shell 1.4%