cmake: only checks for Qt4 if not being used as submodule