Initial commit
This commit is contained in:
53
README.md
Normal file
53
README.md
Normal file
@@ -0,0 +1,53 @@
|
||||
# aoc
|
||||
|
||||
Advent of Code project
|
||||
|
||||
## Requirements
|
||||
|
||||
- [cmake](https://cmake.org/) 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`.
|
||||
|
||||
```sh
|
||||
cmake -S . -Bbuild -GNinja -DCMAKE_BUILD_TYPE=Debug
|
||||
```
|
||||
|
||||
Use `ninja` to build.
|
||||
|
||||
|
||||
```sh
|
||||
ninja -C build
|
||||
```
|
||||
|
||||
Symlink `compile_commands.json` to root directory for `ccls`/`clangd`.
|
||||
|
||||
```sh
|
||||
ln -sfn ./build/compile_commands.json .
|
||||
```
|
||||
|
||||
**Windows (requires admin)**
|
||||
|
||||
```sh
|
||||
New-Item -ItemType SymbolicLink -Path "compile_commands.json" -Target "./build/compile_commands.json"
|
||||
```
|
||||
|
||||
### Visual Studio
|
||||
|
||||
```sh
|
||||
cmake -S . -Bbuild
|
||||
```
|
||||
|
||||
Open either the visual studio project in the build directory or use
|
||||
|
||||
```sh
|
||||
cmake --open build
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user