Blame view

3rdparty/opencv-4.5.4/modules/videoio/cmake/detect_gphoto.cmake 290 Bytes
f4334277   Hu Chunming   提交3rdparty
1
2
3
4
5
6
7
8
9
10
11
  # --- gPhoto2 ---
  if(NOT HAVE_GPHOTO2 AND PKG_CONFIG_FOUND)
    ocv_check_modules(GPHOTO2 libgphoto2)
    if(GPHOTO2_FOUND)
      set(HAVE_GPHOTO2 TRUE)
    endif()
  endif()
  
  if(HAVE_GPHOTO2)
    ocv_add_external_target(gphoto2 "${GPHOTO2_INCLUDE_DIRS}" "${GPHOTO2_LIBRARIES}" "HAVE_GPHOTO2")
  endif()