How do you get all dependent header files from a source file in CMake?
My question is based on this : Listing header files in Visual Studio C++ project generated by cmake
In that question, the answer is to list all the header files to the target. One of the comment says that it is possible to get all the C++ dependent header files from the source file because CMake does know about it.