CSRT-NTUA / AlgoPlus

AlgoPlus is a C++17 library for complex data structures and algorithms
https://csrt-ntua.github.io/AlgoPlus
Apache License 2.0
149 stars 20 forks source link

better CMake integration #13

Open spirosmaggioros opened 5 months ago

spirosmaggioros commented 5 months ago

Each folder should have a CMakeLists txt and then integrate them to the main CMakeLists.txt in root dir.

CharlesGueunet commented 5 months ago

Using cmake libraires so other CMake project can request components seems the way to go. Having several CMakeLists.txt maybe nice, one per independent sub-projects, like the library, the plugins, ... Inside the library, you may want to have components that can be enabled disabled.

In any case, I would suggest to avoid GLOB completely as this is only evaluated at configure time, so any further changes but developers for example would be omitted.