create a ".pri" file which contains all the source and header of the OpenCV and necessary macros.
then include it in ".pro" file
Qt Code:
  1. include(example.pri)
To copy to clipboard, switch view to plain text mode