Skip to content

Commit

Permalink
I think we need calib3d now?
Browse files Browse the repository at this point in the history
It's only needed for undistort. It be worth making optional...
  • Loading branch information
sz3 committed Feb 18, 2022
1 parent 178e02a commit 28559cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ if(DEFINED USE_WASM) # wasm build needs OPENCV_DIR defined
${OPENCV_DIR}/opencv-build-wasm/build_wasm/
${opencv_include_modules}
)
else() # if not wasm, go find opencv
else() # if not wasm, go find opencv. 3 or 4 should both work
find_package(OpenCV REQUIRED)
include_directories(${OpenCV_INCLUDE_DIRS})
endif()

if(NOT DEFINED OPENCV_LIBS)
set(OPENCV_LIBS "opencv_imgcodecs" "opencv_imgproc" "opencv_photo" "opencv_core")
set(OPENCV_LIBS "opencv_calib3d" "opencv_imgcodecs" "opencv_imgproc" "opencv_photo" "opencv_core")
endif()

if(NOT DEFINED CPPFILESYSTEM)
Expand Down

0 comments on commit 28559cb

Please sign in to comment.