2024-12-09 01:27:55 +01:00
2024-12-09 02:15:47 +01:00
2024-12-09 15:16:11 +01:00
2024-12-01 21:43:52 +01:00
2024-12-01 21:43:52 +01:00
2024-12-08 22:35:49 +01:00
2024-12-08 22:35:49 +01:00
2024-12-08 23:58:15 +01:00

aoc

Advent of Code project

Requirements

Development

This project has support for different languages.

C++

There are different ways to setup this project, using ninja or Visual Studio.

Use ninja to build.

ninja -C build

Symlink compile_commands.json to root directory for ccls/clangd.

ln -sfn ./build/compile_commands.json .

Linux (use clang)

CC=clang CXX=clang++ cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_FLAGS="-stdlib=libc++ -I$HOME/.local/include/c++/v1" -DCMAKE_EXE_LINKER_FLAGS="-stdlib=libc++ -fuse-ld=lld -L$HOME/.local/lib" -DCMAKE_SHARED_LINKER_FLAGS="-stdlib=libc++ -fuse-ld=lld -L$HOME/.local/lib"

Windows (requires admin)

New-Item -ItemType SymbolicLink -Path "compile_commands.json" -Target "./build/compile_commands.json"

Visual Studio

cmake -S . -Bbuild

Open either the visual studio project in the build directory or use

cmake --open build
Description
No description provided
Readme 203 KiB
Languages
C++ 94.1%
CMake 5.9%