An open API service indexing awesome lists of open source software.

https://github.com/mikolasan/cpp-by-example

Small C++ snippets playing with core language functionality
https://github.com/mikolasan/cpp-by-example

cpp-course cpp-programming cpp17 cpp20

Last synced: 10 months ago
JSON representation

Small C++ snippets playing with core language functionality

Awesome Lists containing this project

README

          

# C++ by example

![Static Badge](https://img.shields.io/badge/cpp-11-6BBAEC)
![Static Badge](https://img.shields.io/badge/cpp-17-6987C9)
![Static Badge](https://img.shields.io/badge/cpp-20-B388EB)

A collection of code snippets in C++ language

## Optional dependencies

### LLVM

```
git submodule add https://github.com/llvm/llvm-project.git thirdparty/llvm
git checkout llvmorg-16.0.0
cd thirdparty
cmake -S llvm\llvm -B llvm-build --install-prefix="C:\Users\neupo\develop\cpp-skill\thirdparty\windows\LLVM" -DLLVM_ENABLE_PROJECTS=clang -DLLVM_TARGETS_TO_BUILD=X86 -Thost=x64
cmake --build llvm-build --config Release
cmake --install llvm-build
```

### Lua

Add to user environment variables

```
Lua51_ROOT = "C:\\windows\lua"
```

## Build

```
cmake -DCMAKE_BUILD_TYPE=Release -S . -B build
cmake --build build --target all
```