8df8cbb0e4fa9e6ebb76224583eefc02a5a7f177
aoc
Advent of Code project
Requirements
- cmake for C++
Development
This project has support for different languages.
C++
There are different ways to setup this project, using ninja or Visual Studio.
To use miniaudio to play audio on host machine use the flag -DUSE_MINIAUDIO=ON.
cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug
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
Languages
C++
94.1%
CMake
5.9%