LSDtopotools / LSDTopoTools2_roadmap

A roadmap document for LSDTopoTools 2
GNU General Public License v3.0
0 stars 0 forks source link

Have code organised in a more 'traditional' project structure #2

Open dvalters opened 6 years ago

dvalters commented 6 years ago

i.e. at the minute the makefiles are burried at the bottom of the directory structure, but we could have something like a typical GNU project like:

├── Makefile
├── readme.md
├── requirements.txt
├── bin
├── build
├── docs
├── include
├── src
│   ├── LSDCombobulator.cpp
│   └── LSDFoobarbaz.cpp
└── tests

etc

simon-m-mudd commented 6 years ago

Yes we absolutely need a structure like this to move all the cpp files into a subdirectory.

fclubb commented 6 years ago

Ok just to make sure I understand correctly, we would then have:

dvalters commented 6 years ago

Yep, I mean it is fairly flexible really - but something that is 'top down' rather than the 'bottom up' layout currently. Sometimes people mix hpp and cpp in the src folder and do away with include (maybe simpler). There could be subdirs in the src folder as well for drivers (see the CHILD src folder structure for example.)