Access export target name list variables

cmake distinguish if an INTERFACE is imported oder a build library.
At least wenn you want to install your target.

see Using a header only library with FetchContents while build a static lib