OpenCVConfig-ANDROID.cmake.in 571 B

12345678910111213
  1. # Android API level from which OpenCV has been compiled is remembered
  2. set(OpenCV_ANDROID_NATIVE_API_LEVEL "@OpenCV_ANDROID_NATIVE_API_LEVEL_CONFIGCMAKE@")
  3. # ==============================================================
  4. # Check OpenCV availability
  5. # ==============================================================
  6. if(OpenCV_ANDROID_NATIVE_API_LEVEL GREATER ANDROID_NATIVE_API_LEVEL)
  7. if(NOT OpenCV_FIND_QUIETLY)
  8. message(WARNING "Minimum required by OpenCV API level is android-${OpenCV_ANDROID_NATIVE_API_LEVEL}")
  9. endif()
  10. set(OpenCV_FOUND 0)
  11. return()
  12. endif()