Unbreak Qt3DRender OpenGL plugin unity-build
Exclude the imgui files from PCH (and therefore Unity) builds. In
unity builds, they were observed to hit the
#error Please '#define IMGUI_DEFINE_MATH_OPERATORS' _BEFORE_ including imgui.h!
in imgui.h. But these files define some macros before they include
headers, so PCH should also be affected, thus use NO_PCH_SOURCES.
Create a variable to DRY the lists for SOURCES and NO_PCH_SOURCES.
Amends 01b416a07c49ba15f2d0a65712d38f300b763803.
Pick-to: 6.9 6.8 6.5
Change-Id: Ic2a23a50a1d6fa6792262dd16f0acf5dc0e51a51
Reviewed-by: Alexey Edelev <alexey.edelev@qt.io>