detect_android_camera.cmake 345 B

123456
  1. # if(ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER_EQUAL 24) <-- would be nicer but requires CMake 3.7 or later
  2. if(ANDROID AND ANDROID_NATIVE_API_LEVEL GREATER 23)
  3. set(HAVE_ANDROID_NATIVE_CAMERA TRUE)
  4. set(libs "-landroid -llog -lcamera2ndk")
  5. ocv_add_external_target(android_native_camera "" "${libs}" "HAVE_ANDROID_NATIVE_CAMERA")
  6. endif()