mirror of
https://github.com/opencv/opencv.git
synced 2024-12-11 22:59:16 +08:00
c6c651212c
- removed OpenCV_LIB_DIR* vars (they are broken and not required anymore) - OpenCVConfig.cmake doesn't contain ANDROID/CUDA code if there is no such support - removed OpenCV2_INCLUDE_DIRS_CONFIGCMAKE, merged into OpenCV_INCLUDE_DIRS_CONFIGCMAKE - fix hard-coded relative paths for OpenCV_INSTALL_PATH - removed OpenCV_TBB_ARCH - switch OpenCVConfig.cmake into 2-level mode for Android SDK
14 lines
571 B
CMake
14 lines
571 B
CMake
# Android API level from which OpenCV has been compiled is remembered
|
|
set(OpenCV_ANDROID_NATIVE_API_LEVEL "@OpenCV_ANDROID_NATIVE_API_LEVEL_CONFIGCMAKE@")
|
|
|
|
# ==============================================================
|
|
# Check OpenCV availability
|
|
# ==============================================================
|
|
if(OpenCV_ANDROID_NATIVE_API_LEVEL GREATER ANDROID_NATIVE_API_LEVEL)
|
|
if(NOT OpenCV_FIND_QUIETLY)
|
|
message(WARNING "Minimum required by OpenCV API level is android-${OpenCV_ANDROID_NATIVE_API_LEVEL}")
|
|
endif()
|
|
set(OpenCV_FOUND 0)
|
|
return()
|
|
endif()
|