qt4_wrap_cpp ignore set_source_files_properties and target_compile_definitions definitions in its moc generation
When a definition is added to a target which use sources generated by qt4_wrap_cpp
using target_compile_definitions
, the said definition is ignored in the MOC files generation. The same thing happens when a definition is set using set_source_files_properties
on source files later passed to qt4_wrap_cpp
: the MOC files generated do not have the definition.