TL;DR:
Is there a way to check, whether a CMake target is being used rather than just defined?
My project provides