diff --git a/OpenCVConfig.cmake.in b/OpenCVConfig.cmake.in index 094cf3715e..ff6016adbb 100644 --- a/OpenCVConfig.cmake.in +++ b/OpenCVConfig.cmake.in @@ -137,6 +137,10 @@ IF (NOT OpenCV_SHARED) # Old CMake: set(OpenCV_LIBS ${OpenCV_LIBS} ${OpenCV_EXTRA_COMPONENTS}) endif() + + if (APPLE) + set(OpenCV_LIBS ${OpenCV_LIBS} "-lbz2" "-framework Cocoa" "-framework QuartzCore" "-framework QTKit") + endif() ENDIF() # ======================================================