2020-11-23 19:45:00 +00:00
|
|
|
# Cpp
|
|
|
|
|
|
|
|
```
|
|
|
|
shaunrd0/klips/cpp/
|
2021-05-24 17:12:14 +00:00
|
|
|
├── algorithms # Examples of various algorithms written in C++
|
2020-11-23 19:45:00 +00:00
|
|
|
├── cmake # Example of using cmake to build and organize larger projects
|
2021-07-22 14:50:29 +00:00
|
|
|
├── cryptography# Examples of encrypting / decrypting using ciphers in C++
|
2020-11-23 19:45:00 +00:00
|
|
|
├── datastructs # Collection of useful datastructures written in C++
|
2021-05-29 19:08:39 +00:00
|
|
|
├── graphics # Examples of graphics projects written in C++
|
2021-05-24 17:12:14 +00:00
|
|
|
├── patterns # Examples of various design patterns written in C++
|
2021-05-29 19:08:39 +00:00
|
|
|
└── README.md
|
2020-11-23 19:45:00 +00:00
|
|
|
```
|
|
|
|
|
2021-04-28 03:42:12 +00:00
|
|
|
This directory contains a `CMakeLists.txt`, which can be selected to open as a
|
|
|
|
project within your preferred IDE. From there, all nested examples can be built,
|
|
|
|
debugged, and ran.
|
2020-11-23 19:45:00 +00:00
|
|
|
|
|
|
|
In general, if a `CMakeLists.txt` is included in the project's root directory,
|
|
|
|
we can build the example with the following commands
|
|
|
|
|
|
|
|
```
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake .. && cmake --build .
|
|
|
|
```
|
|
|
|
|
|
|
|
If cmake is not being used in a project, it can be built with `g++` manually using
|
2020-11-25 12:06:48 +00:00
|
|
|
the commands outlined in `*/.vscode/tasks.json`, or by using VSCode to open the example
|
2020-11-23 19:45:00 +00:00
|
|
|
and running the build task.
|
2021-04-28 03:42:12 +00:00
|
|
|
|