This is a simple base structure for C/C++ projects, contaning a generic makefile that will suit most simple projects and requires cmose to no setup.
To setup the project, simply run the init.sh script. This simple utility prepares the project by initializing an empty git repository, deleting unnecessary files (LICENCE, this file...) before deleting itself.
The makefile sets up three main targets to manipulate your project:
all
: the default target that builds the entire projectclean
: removes all generated filesrebuild
: a combination of clean and all that forces an entire rebuild of the project
The makefile should be self explanatory so that making changes to it is easy. If not, feel free to open an issue or a PR.
The project structure is rather simple and consists of five main directories:
src
containing all .cpp source filesheaders
containing all .h filesbuild
containing the generated filesbuild/obj
containing the generated object filesbuild/bin
containing the final binary file
If you have some experience in C/C++ and think this small utility can be improved, feel free to open a PR. If you found any bug, please open an issue describing the circumstances of the problem.
Guillaume Bauer