Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
O
opencv
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
opencv
Commits
d0c4a92b
Commit
d0c4a92b
authored
5 years ago
by
Ilya Lavrenov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adopted detection of Inference Engine
parent
6bf6d1dc
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
7 deletions
+10
-7
CMakeLists.txt
CMakeLists.txt
+9
-6
OpenCVDetectInferenceEngine.cmake
cmake/OpenCVDetectInferenceEngine.cmake
+1
-1
No files found.
CMakeLists.txt
View file @
d0c4a92b
...
...
@@ -1580,19 +1580,22 @@ endif()
if
(
WITH_INF_ENGINE OR INF_ENGINE_TARGET
)
if
(
INF_ENGINE_TARGET
)
list
(
GET INF_ENGINE_TARGET 0 ie_target
)
set
(
__msg
"YES (
${
INF_ENGINE_RELEASE
}
/
${
INF_ENGINE_VERSION
}
)"
)
get_target_property
(
_lib
${
INF_ENGINE_TARGET
}
IMPORTED_LOCATION
)
get_target_property
(
_lib_imp_rel
${
INF_ENGINE_TARGET
}
IMPORTED_IMPLIB_RELEASE
)
get_target_property
(
_lib_imp_dbg
${
INF_ENGINE_TARGET
}
IMPORTED_IMPLIB_DEBUG
)
get_target_property
(
_lib_rel
${
INF_ENGINE_TARGET
}
IMPORTED_LOCATION_RELEASE
)
get_target_property
(
_lib_dbg
${
INF_ENGINE_TARGET
}
IMPORTED_LOCATION_DEBUG
)
get_target_property
(
_lib
${
ie_target
}
IMPORTED_LOCATION
)
get_target_property
(
_lib_imp_rel
${
ie_target
}
IMPORTED_IMPLIB_RELEASE
)
get_target_property
(
_lib_imp_dbg
${
ie_target
}
IMPORTED_IMPLIB_DEBUG
)
get_target_property
(
_lib_rel
${
ie_target
}
IMPORTED_LOCATION_RELEASE
)
get_target_property
(
_lib_dbg
${
ie_target
}
IMPORTED_LOCATION_DEBUG
)
ocv_build_features_string
(
_lib
IF _lib THEN
"
${
_lib
}
"
IF _lib_imp_rel AND _lib_imp_dbg THEN
"
${
_lib_imp_rel
}
/
${
_lib_imp_dbg
}
"
IF _lib_rel AND _lib_dbg THEN
"
${
_lib_rel
}
/
${
_lib_dbg
}
"
IF _lib_rel THEN
"
${
_lib_rel
}
"
IF _lib_dbg THEN
"
${
_lib_dbg
}
"
ELSE
"unknown"
)
get_target_property
(
_inc
${
INF_ENGINE_TARGET
}
INTERFACE_INCLUDE_DIRECTORIES
)
get_target_property
(
_inc
${
ie_target
}
INTERFACE_INCLUDE_DIRECTORIES
)
status
(
" Inference Engine:"
"
${
__msg
}
"
)
status
(
" libs:"
"
${
_lib
}
"
)
status
(
" includes:"
"
${
_inc
}
"
)
...
...
This diff is collapsed.
Click to expand it.
cmake/OpenCVDetectInferenceEngine.cmake
View file @
d0c4a92b
...
...
@@ -52,7 +52,7 @@ endfunction()
find_package
(
InferenceEngine QUIET
)
if
(
InferenceEngine_FOUND
)
set
(
INF_ENGINE_TARGET
IE::inference_engine
)
set
(
INF_ENGINE_TARGET
${
InferenceEngine_LIBRARIES
}
)
set
(
INF_ENGINE_VERSION
"
${
InferenceEngine_VERSION
}
"
CACHE STRING
""
)
message
(
STATUS
"Detected InferenceEngine: cmake package"
)
endif
()
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment