Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nizos/aoc2022-cpp
Advent of Code 2022
https://github.com/nizos/aoc2022-cpp
Last synced: 1 day ago
JSON representation
Advent of Code 2022
- Host: GitHub
- URL: https://github.com/nizos/aoc2022-cpp
- Owner: nizos
- Created: 2022-12-01T20:50:03.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2022-12-04T09:33:14.000Z (about 2 years ago)
- Last Synced: 2024-11-06T10:25:18.894Z (about 2 months ago)
- Language: C++
- Size: 33.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# 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.
```bash
mkdir -p build && cd build
cmake ../
make
```### Run
The program can be run after building it by running the following command.
```bash
# in ./build directory
./main
```### Test
Unit tests can be performed by running the following commands.
```bash
# in ./build directory
./runTests
```## Scripts
The following scripts are provided for convention.
### Build & Run
```bash
./scripts/run.sh
```### Build & Test
```bash
./scripts/test.sh
```## Additional commands
### Fix scripts mode
```bash
chmod +x scripts/*
```