2022-01-15 05:53:19 +08:00
|
|
|
# The script detects Intel(R) OpenVINO(TM) runtime installation
|
2018-02-06 16:57:35 +08:00
|
|
|
#
|
2018-07-30 23:21:17 +08:00
|
|
|
# Result:
|
2022-01-15 05:53:19 +08:00
|
|
|
# - target ocv.3rdparty.openvino
|
2018-02-06 16:57:35 +08:00
|
|
|
|
2022-02-07 00:10:43 +08:00
|
|
|
if(WITH_OPENVINO)
|
|
|
|
find_package(OpenVINO QUIET)
|
|
|
|
if(OpenVINO_FOUND)
|
|
|
|
message(STATUS "OpenVINO FOUND: ${OpenVINO_VERSION}")
|
|
|
|
math(EXPR ver "${OpenVINO_VERSION_MAJOR} * 1000000 + ${OpenVINO_VERSION_MINOR} * 10000 + ${OpenVINO_VERSION_PATCH} * 100")
|
|
|
|
ocv_add_external_target(openvino "" "openvino::runtime" "INF_ENGINE_RELEASE=${ver};HAVE_NGRAPH;HAVE_DNN_NGRAPH;HAVE_INF_ENGINE")
|
|
|
|
set(HAVE_OPENVINO 1)
|
2018-07-30 23:21:17 +08:00
|
|
|
return()
|
2022-02-07 00:10:43 +08:00
|
|
|
endif()
|
2018-07-17 20:30:56 +08:00
|
|
|
endif()
|