How to package qt on mac platform?I use opencv in my project, how to package third-party libraries?

I installed opencv with brew.
This is my pro configuration file.

Qt Code:
  1. INCLUDEPATH += /usr/local/include/opencv4 \
  2. /usr/local/include/opencv4/opencv2
  3. LIBS += /usr/local/lib/libopencv_*
To copy to clipboard, switch view to plain text mode 

After I use macdeployqt, I use install_name_tool -change to change the path, but when I package it as dmg on another mac, it won't open.