These small C++ programs demonstrate how to use tools, libraries, and programming design patterns, on a more basic level.
Programs:
- .NET Hosting (See more info below in this doc)
- ECS
- JSON
- OpenGL
- UTF-8
- Programming Design Patterns:
- Singleton
- Service Locator
- More coming soon!
NOTE: Each project has a name, defined near the top of their CMakeLists.txt file with the project(...)
CMake statement. For example, project("JsonExample" VERSION 1.0.0)
defines the project name to be "JsonExample".
NOTE: [CONFIG]
may be either Debug
or Release
.
- Open a (Git) bash terminal to the example project's directory.
- Run
cmake . -B out -D CMAKE_BUILD_TYPE=[CONFIG]
- This uses CMake to generate the build system files (like Makefiles, Visual Studio project files, etc.) together with the source files (from
.
, the current directory of your terminal).
- This uses CMake to generate the build system files (like Makefiles, Visual Studio project files, etc.) together with the source files (from
- Run
cmake --build out --config [CONFIG]
- This uses the build tool/generator used by CMake to actually build your project.
- Using the name of your project (see above), run your executable:
./out/[CONFIG]/[PROJECT_NAME].exe
(Windows)./out/[PROJECT_NAME]
(Mac/Linux)
- Run
dotnet build ../../csharp
- Run
./copy-csharp-files.sh [CONFIG]