MikeLankamp / fpm

C++ header-only fixed-point math library
https://mikelankamp.github.io/fpm
MIT License
649 stars 79 forks source link

Only build tools when a top-level project #47

Closed flaviut closed 1 year ago

flaviut commented 1 year ago

CPM or FetchContent are frequently used to add dependencies to projects. In that case, it doesn't make sense to add all these extra targets unless they are asked for.

This is needed, for example, in the case of use in an embedded project. When GoogleBench is included, it depends on threads, which are not available.