Template repository for cross-platform C++ development based on the CMake build system.
Note: This repository has been tested on macOS and Debian-based Linux distributions. Windows support will be added in the future.
- Projects based on the CMake build system.
- Projects with only a few source files like
main.cpp
,mylib.cpp
, etc. - Projects that require third-party dependencies like
SDL3
. - Projects that need additional libraries like
TestLib.h
, which may also require third-party dependencies. - Developers who need a C++ development laboratory to test simple libraries that require third-party dependencies.
- CMake
- Make (optional)
- Git
- Compiler
For Windows:
cmake -G "MinGW Makefiles" -DCMAKE_INSTALL_PREFIX=out/app -S . -B out/build
For Unix/Linux:
cmake -DCMAKE_INSTALL_PREFIX=out/app -S . -B out/build
cmake --build out/build -j 12 -v
cmake --install out/build --verbose
cpack out/build -c Debug --verbose
- Include compiler options in the CMake configuration.
- Update the
bake.sh
file to automate develop/build/test/clean process on Linux/Unix systems - Implement the
bake.bat
file to automate develop/build/test/clean process on Windows systems