Autogen: Sources in target_sources() are not processed for AUTOUIC
We use if() clauses with target_sources() to conditionally add files to targets and thereby (not)compile them depending on the conditions in the if(). We noticed that adding sources that have #include "ui_XXX.h" in them are not caught by the AUTO_UIC and the corresponding XXX.ui files are thereby not used to generate the ui_XXX.h files.
Edited by Brad King