klips/cpp
Shaun Reed 8817a594be Add cmake project files for cpp/ directory and all relevant subdirecctories
+ Add Makefiles generated by CMake JIC make is preferred
+ Update cmake version, header comments, and project descriptions
2021-04-28 00:10:47 -04:00
..
algorithms/sorting/selection Add new cpp/algorithms directory, include basic selection sort example 2021-01-17 17:04:20 -05: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 Cleanup files, add comments 2020-06-12 00:36:03 -04:00
opengl-invaders Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
sdl Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
sdl-cmake Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
sdl-invaders Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
CMakeLists.txt Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00
README.md Add cmake project files for cpp/ directory and all relevant subdirecctories 2021-04-28 00:10:47 -04:00

README.md

Cpp

shaunrd0/klips/cpp/
├── 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 make
├── README.md
├── sdl         # Barebones sdl application written in C++ built with make
└── sdl-cmake   # Barebones sdl application written in C++ built with cmake

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.