def METHOD_NAME(self):
    cmake = CMake(self)
    cmake.definitions["BUILD_STATIC"] = not self.options.shared
    cmake.definitions["BUILD_STATIC_PIC"] = self.options.get_safe("fPIC", False)
    cmake.definitions["BUILD_TESTS"] = False
    cmake.definitions["BUILD_GL_TESTS"] = False
    cmake.definitions["WITH_PLAYER"] = self.options.player
    cmake.definitions["WITH_UI"] = self.options.ui
    cmake.definitions["WITH_UI_GALLERY"] = self.options.ui_gallery
    cmake.configure()
    return cmake