cmake: depend on WGL_TESTS being enabled to build WGL