qt5base: CMake should not depend on OpenGL with -no-opengl

define an OpenGL scope by testing Qt's configuration