OpenCVConfig.root-ANDROID.cmake.in 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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: "@OPENCV_VERSION_PLAIN@"
  24. # - OpenCV_VERSION_MAJOR : Major version part of OpenCV_VERSION: "@OPENCV_VERSION_MAJOR@"
  25. # - OpenCV_VERSION_MINOR : Minor version part of OpenCV_VERSION: "@OPENCV_VERSION_MINOR@"
  26. # - OpenCV_VERSION_PATCH : Patch version part of OpenCV_VERSION: "@OPENCV_VERSION_PATCH@"
  27. # - OpenCV_VERSION_STATUS : Development status of this build: "@OPENCV_VERSION_STATUS@"
  28. #
  29. # ===================================================================================
  30. # Extract directory name from full path of the file currently being processed.
  31. # Note that CMake 2.8.3 introduced CMAKE_CURRENT_LIST_DIR. We reimplement it
  32. # for older versions of CMake to support these as well.
  33. if(CMAKE_VERSION VERSION_LESS "2.8.3")
  34. get_filename_component(CMAKE_CURRENT_LIST_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
  35. endif()
  36. if(NOT DEFINED OpenCV_CONFIG_SUBDIR)
  37. set(OpenCV_CONFIG_SUBDIR "/abi-${ANDROID_NDK_ABI_NAME}")
  38. endif()
  39. set(OpenCV_CONFIG_PATH "${CMAKE_CURRENT_LIST_DIR}${OpenCV_CONFIG_SUBDIR}")
  40. if(EXISTS "${OpenCV_CONFIG_PATH}/OpenCVConfig.cmake")
  41. include("${OpenCV_CONFIG_PATH}/OpenCVConfig.cmake")
  42. else()
  43. if(NOT OpenCV_FIND_QUIETLY)
  44. message(WARNING "Found OpenCV Android Pack but it has no binaries compatible with your ABI (can't find: ${OpenCV_CONFIG_SUBDIR})")
  45. endif()
  46. set(OpenCV_FOUND FALSE)
  47. endif()