Skip to content

Commit

Permalink
Updated how opencv dependencies are linked on iOS to support vcpkg (#600
Browse files Browse the repository at this point in the history
)
  • Loading branch information
trevorRO authored Dec 8, 2023
1 parent a91f14e commit 69089e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,10 @@ endif()
# Find OpenCV
find_package(OpenCV 4.0.0 REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})

if(IOS)
file(GLOB OPENCV_IOS_LIBS "${OpenCV_DIR}/../../*.a")
list(APPEND BR_THIRDPARTY_LIBS ${OPENCV_IOS_LIBS})
set(OPENCV_DEPENDENCIES opencv_core opencv_dnn opencv_features2d opencv_highgui opencv_imgcodecs opencv_imgproc opencv_ml)
set(BR_THIRDPARTY_LIBS ${BR_THIRDPARTY_LIBS} ${OPENCV_DEPENDENCIES})
list(APPEND BR_THIRDPARTY_LIBS "-framework Foundation -framework UIKit -framework Security -framework MobileCoreServices -lc++")
else()
set(OPENCV_DEPENDENCIES opencv_core opencv_dnn opencv_features2d opencv_highgui opencv_imgcodecs opencv_imgproc opencv_ml opencv_videoio)
Expand Down

0 comments on commit 69089e2

Please sign in to comment.