def METHOD_NAME(self):
    apply_conandata_patches(self)
    # Cleanup RPATH if Apple in shared lib of install tree
    replace_in_file(self, os.path.join(self.source_folder, "CMakeLists.txt"),
                          "SET(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)",
                          "")
    # Link to OpenCV targets
    replace_in_file(self, os.path.join(self.source_folder, "src", "CMakeLists.txt"),
                          "${OpenCV_LIBS}",
                          "opencv_core opencv_videoio opencv_imgproc opencv_imgcodecs")