OCV_OPTION(WITH_OBSENSOR "Include obsensor support (Orbbec RGB-D modules: Astra+/Femto)" ON
VISIBLE_IF (WIN32 AND NOT ARM AND NOT WINRT) OR ( UNIX AND NOT APPLE AND NOT ANDROID)
VERIFY HAVE_OBSENSOR)
+OCV_OPTION(WITH_CANN "Include CANN support" OFF
+ VISIBLE_IF TRUE
+ VERIFY HAVE_CANN)
# OpenCV build components
# ===================================================
if(WITH_TIMVX)
include(cmake/OpenCVFindTIMVX.cmake)
endif()
+if(WITH_CANN)
+ include(cmake/OpenCVFindCANN.cmake)
+endif()
# ----------------------------------------------------------------------------
# Detect other 3rd-party libraries/tools
endif()
endif()
+if(WITH_CANN)
+ status("")
+ status(" CANN:" HAVE_CANN THEN "YES" ELSE "NO")
+ if(HAVE_CANN)
+ status(" Include path" CANN_INCLUDE_DIRS THEN "${CANN_INCLUDE_DIRS}" ELSE "NO")
+ status(" Link libraries:" CANN_LIBRARIES THEN "${CANN_LIBRARIES}" ELSE "NO")
+ endif()
+endif()
+
# ========================== python ==========================
if(BUILD_opencv_python2)
status("")