In Unity Editor, open Player Settings (Edit > Project Settings > Player).
Under Other Settings, check Virtual Reality Supported.
Add or remove VR devices for each build target in the Virtual Reality SDKs list under the checkbox.