fileapi: add ability to query for discovered header files
At the moment CMake is exporting the source files and header files in a target if they were added via add_library
, add_executable
or target_sources
.
For Ninja and Makefiles (starting with version 3.20) CMake has a way to extract the implicit dependencies while compiling source files.
Would it be feasible for CMake to export the headers information in the file-api json files?
At https://bugreports.qt.io/browse/QTCREATORBUG-28638 we can see an example of a project that doesn't consider header files as source files and Qt Creator can't handle the header files in the project.