olympus-robotics / hephaestus

Hephaestus is a C++ framework designed to facilitate robotics development by providing commonly needed functionality and abstractions.
MIT License
26 stars 4 forks source link

[CMake] Add option to specify a dependency is test only #192

Closed filippobrizzi closed 3 weeks ago

filippobrizzi commented 4 weeks ago

Description

To improve modularity and reduce dependencies, I added an option to specify that a module is a test dependency only. In this way, when building with BUILD_TESTING=OFF we can speed things up and reduce coupling.

To showcase the improvement I updated the unit test of the bag module: