Hello all,
I started working on an engine. For beginning I had all my src files in one folder, and one CMakeLists.txt.
Now, it seems a good time to split things up a bit.
I'm wondering if I'm splitting things up a bit much.
Here is basic layout for my hierarchy:
Low-Level-Systems-Library (LLSL)
- Atomic Data Types
- Collections and Iterators
- Hi-Resolution timer
- Treading Library
- Platform Detection
- Assertions
- Memory Allocation
- Input
Game-Engine-Library (GEL)
- Physics
- PhysicsWorld.cpp
- PhysicsBodies(folder)
- .cpp & .hpp files
- Forces & Constraints
- HUD
- Menu
- Button
- Slider
- Game Object
- Particle Systems
- Camera
- AI Systems
Game-Creation-Software (GCS)
(Not sure about this one, it's basically my editor)
Anyways the point is I'm not sure this will play will with CMake. That'd be alot of CMakeLists.txt.
Then there is also the difference between src layout, and project filter layout.
What do you recommend?
This will require alot of CMakeLists.txt & each directory essentially becomes a library.
I'm a beginner at using CMake and was wondering what you would recommend/ What is a good layout (eg the sweet spot with sub-dirs/ how to decide that sweet spot & considerations when looking at project dir layout, and src layout when using CMake.
Thanks!