klips/cpp
Shaun Reed a7d11c559e Add example for counting sort 2021-05-29 14:49:04 -04:00
..
algorithms Add example for counting sort 2021-05-29 14:49:04 -04:00
cmake Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
datastructs Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
opengl Update OpenGL standalone example 2021-05-24 13:14:32 -04:00
opengl-cmake Reorganize cpp/opengl-cmake 2021-05-24 17:37:27 -04:00
patterns Rename source file in prototype pattern 2021-05-21 12:34:18 -04:00
sdl Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
sdl-cmake Update cpp/sdl-cmake example 2021-05-24 17:00:13 -04:00
CMakeLists.txt Add subdirectory for practicing design patterns in C++ 2021-05-11 11:56:46 -04:00
README.md Update OpenGL standalone example 2021-05-24 13:14:32 -04:00

README.md

Cpp

shaunrd0/klips/cpp/
├── algorithms  # Examples of various algorithms written in C++
├── cmake       # Example of using cmake to build and organize larger projects
├── datastructs # Collection of useful datastructures written in C++
├── opengl      # Barebones opengl application written in C++ built with gcc
├── patterns    # Examples of various design patterns written in C++
├── README.md
├── sdl-cmake   # Barebones sdl application written in C++ built with cmake
└── sdl         # Barebones sdl application written in C++ built with gcc

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.

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 the commands outlined in */.vscode/tasks.json, or by using VSCode to open the example and running the build task.