Get all include directories from linked target
If I have e.g. a target A with some include directories and a linked target b which also has some include directories. Is there a way to get the include directories from target a and b?
So I call a function GET_INCLUDE_DIRS(A) which returns me the include directories from target A and B?