CMake provides BUILD_SHARED_LIBS
to allow library targets to be either STATIC or SHARED.
What if I decide that I want to build the target as an object library for aggregation with other targets?
Will this need to be an if/elseif/else tree in every target.