A Generic Project Structure in C++


In this post, I will introduce a generic structure for C++ projects.


A clean structure is the basis of a clean project. I simplify the full version and present a simpler but useful structure here.

1. bin: The output executables.
2. build: This folder contains all object files.
3. docs: Any notes, like Doxygen
4. include: All project header files not under /usr/local/include.
5. lib: Third party libs.
6. src: The application and only the application’s source files.
7. test: All test code files.


Hiltmon’s Blog

Leave a Reply

Your email address will not be published. Required fields are marked *