Get information on interface library without sources via CMake File API

I was using the CMake File API to simply have my code analysis tool “ask” what files to analyze for a given target.
Unfortunately I noticed that if I have an interface library that only has include directories added, but no sources explicitly added, it does not show up in the targets array on the codemodel reply.

Any way I can still get these targets and there include directories via the File API?

If an INTERFACE library has no sources of its own, it is not classified as a build system target, and it won’t be included in the file API reply. It’s annoying, but that’s the behavior, and it has come up a few times in discussion of various issues.