Add module check to examples .pro-file.

Task-number: QTBUG-31076

Change-Id: I345cb91f82262b64c2d414bec585e5a7ca724ce3
Reviewed-by: Thomas McGuire <thomas.mcguire@kdab.com>