detect_gphoto.cmake 290 B

1234567891011
  1. # --- gPhoto2 ---
  2. if(NOT HAVE_GPHOTO2 AND PKG_CONFIG_FOUND)
  3. ocv_check_modules(GPHOTO2 libgphoto2)
  4. if(GPHOTO2_FOUND)
  5. set(HAVE_GPHOTO2 TRUE)
  6. endif()
  7. endif()
  8. if(HAVE_GPHOTO2)
  9. ocv_add_external_target(gphoto2 "${GPHOTO2_INCLUDE_DIRS}" "${GPHOTO2_LIBRARIES}" "HAVE_GPHOTO2")
  10. endif()