After executing find_package(mypkg)
, I should now have all sorts of targets under the mypkg “namespace”. Yes, I know there aren’t real namespaces in CMake, but targets named mypkg::foo
or mypkg::bar
etc.
I want to obtain a list of all of these targets. How do I do that?
Note: Assume that no other CMake target in my project begins with mypkg::
, including other imported targets.