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
5b72e836
Commit
5b72e836
authored
Jul 17, 2018
by
Alexander Alekhin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cmake: prefer using find_package(InferenceEngine)
parent
78d07e84
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletion
+20
-1
CMakeLists.txt
CMakeLists.txt
+11
-1
OpenCVDetectInferenceEngine.cmake
cmake/OpenCVDetectInferenceEngine.cmake
+9
-0
No files found.
CMakeLists.txt
View file @
5b72e836
...
...
@@ -1408,7 +1408,17 @@ if(WITH_HALIDE OR HAVE_HALIDE)
endif
()
if
(
WITH_INF_ENGINE OR HAVE_INF_ENGINE
)
status
(
" Inference Engine:"
HAVE_INF_ENGINE THEN
"YES (
${
INF_ENGINE_LIBRARIES
}
${
INF_ENGINE_INCLUDE_DIRS
}
)"
ELSE NO
)
if
(
HAVE_INF_ENGINE
)
set
(
__msg
"YES"
)
if
(
DEFINED INF_ENGINE_VERSION
)
set
(
__msg
"YES (ver
${
INF_ENGINE_VERSION
}
)"
)
endif
()
status
(
" Inference Engine:"
"
${
__msg
}
"
)
status
(
" libs:"
"
${
INF_ENGINE_LIBRARIES
}
"
)
status
(
" includes:"
"
${
INF_ENGINE_INCLUDE_DIRS
}
"
)
else
()
status
(
" Inference Engine:"
"NO"
)
endif
()
endif
()
if
(
WITH_EIGEN OR HAVE_EIGEN
)
...
...
cmake/OpenCVDetectInferenceEngine.cmake
View file @
5b72e836
...
...
@@ -20,6 +20,15 @@ if(NOT HAVE_CXX11)
ie_fail
()
endif
()
find_package
(
InferenceEngine QUIET
)
if
(
InferenceEngine_FOUND
)
set
(
INF_ENGINE_LIBRARIES
"
${
InferenceEngine_LIBRARIES
}
"
)
set
(
INF_ENGINE_INCLUDE_DIRS
"
${
InferenceEngine_INCLUDE_DIRS
}
"
)
set
(
INF_ENGINE_VERSION
"
${
InferenceEngine_VERSION
}
"
)
set
(
HAVE_INF_ENGINE TRUE
)
return
()
endif
()
ocv_check_environment_variables
(
INTEL_CVSDK_DIR INF_ENGINE_ROOT_DIR IE_PLUGINS_PATH
)
if
(
NOT INF_ENGINE_ROOT_DIR OR NOT EXISTS
"
${
INF_ENGINE_ROOT_DIR
}
/include/inference_engine.hpp"
)
...
...
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