First time here? Check out the FAQ!
answered 2020-07-02 06:06:23 -0600
If you compiled OpenCV as a static library, before find_package( OpenCV REQUIRED ) add set(OpenCV_STATIC ON):
find_package( OpenCV REQUIRED )
set(OpenCV_STATIC ON)
set(OpenCV_STATIC ON) find_package( OpenCV REQUIRED )