[CMake] Method to get effective include_directories and compile_definitions

Stephen Kelly steveire at gmail.com
Mon Feb 10 04:00:56 EST 2014


Lars Christensen wrote:

> Hello,
> 
> Is there a way to get the effective include directories and compile
> definitions for a target, including those specified at the directory level
> and any INTERFACE_INCLUDE_DIRECTORIES and INTERFACE_COMPILE_DEFINITION on
> targets that are required via target_link_libraries?

See QT4_CREATE_MOC_COMMAND which uses file(GENERATE) to do that.

Thanks,

Steve.




More information about the CMake mailing list