Hi Andre, > Would this be right approach or should i rather define a macro during the > build as a CMake option? If qplatformdefs.h is present on all platforms, an unconditional include is just fine in my opinion, at least. :) Just a quick research in the qt source tree: find . -name qplatformdefs.h | wc -l 131 Best Regards, Laszlo Papp