1# ===================================================================================
2#  The OpenCV CMake configuration file
3#
4#             ** File generated automatically, do not modify **
5#
6#  Usage from an external project:
7#    In your CMakeLists.txt, add these lines:
8#
9#    find_package(OpenCV REQUIRED)
10#    include_directories(${OpenCV_INCLUDE_DIRS}) # Not needed for CMake >= 2.8.11
11#    target_link_libraries(MY_TARGET_NAME ${OpenCV_LIBS})
12#
13#    Or you can search for specific OpenCV modules:
14#
15#    find_package(OpenCV REQUIRED core videoio)
16#
17#    If the module is found then OPENCV_<MODULE>_FOUND is set to TRUE.
18#
19#    This file will define the following variables:
20#      - OpenCV_LIBS                     : The list of all imported targets for OpenCV modules.
21#      - OpenCV_INCLUDE_DIRS             : The OpenCV include directories.
22#      - OpenCV_ANDROID_NATIVE_API_LEVEL : Minimum required level of Android API.
23#      - OpenCV_VERSION                  : The version of this OpenCV build: "3.4.5"
24#      - OpenCV_VERSION_MAJOR            : Major version part of OpenCV_VERSION: "3"
25#      - OpenCV_VERSION_MINOR            : Minor version part of OpenCV_VERSION: "4"
26#      - OpenCV_VERSION_PATCH            : Patch version part of OpenCV_VERSION: "5"
27#      - OpenCV_VERSION_STATUS           : Development status of this build: ""
28#
29# ===================================================================================
30
31# Extract directory name from full path of the file currently being processed.
32# Note that CMake 2.8.3 introduced CMAKE_CURRENT_LIST_DIR. We reimplement it
33# for older versions of CMake to support these as well.
34if(CMAKE_VERSION VERSION_LESS "2.8.3")
35  get_filename_component(CMAKE_CURRENT_LIST_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
36endif()
37
38if(NOT DEFINED OpenCV_CONFIG_SUBDIR)
39  set(OpenCV_CONFIG_SUBDIR "/abi-${ANDROID_NDK_ABI_NAME}")
40endif()
41
42set(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_DIR}${OpenCV_CONFIG_SUBDIR}")
43if(EXISTS "${OpenCV_CONFIG_PATH}/OpenCVConfig.cmake")
44  include("${OpenCV_CONFIG_PATH}/OpenCVConfig.cmake")
45else()
46  if(NOT OpenCV_FIND_QUIETLY)
47    message(WARNING "Found OpenCV Android Pack but it has no binaries compatible with your ABI (can't find: ${OpenCV_CONFIG_SUBDIR})")
48  endif()
49  set(OpenCV_FOUND FALSE)
50endif()
51