Fixed comments after #11155 (#11202)

* Fixed comments after #11155

* Add information about plugin option
This commit is contained in:
Ilya Churaev 2022-03-25 16:02:18 +03:00 committed by GitHub
parent a2705b1fed
commit 4dc0d6e711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -27,7 +27,7 @@ endif()
# [OBJECT_LIBRARIES <object_libs>]
# [VERSION_DEFINES_FOR <source>]
# [SKIP_INSTALL]
# [SKIP_REGISTRATION]
# [SKIP_REGISTRATION] Skip creation of <device>.xml
# [ADD_CLANG_FORMAT]
# )
#
@ -147,6 +147,7 @@ function(ie_add_plugin)
endif()
endif()
# Enable for static build to generate correct plugins.hpp
if(NOT IE_PLUGIN_SKIP_REGISTRATION OR NOT BUILD_SHARED_LIBS)
# check that plugin with such name is not registered
foreach(plugin_entry IN LISTS PLUGIN_FILES)

View File

@ -14,6 +14,8 @@ $ make -j8
$ cd <template_plugin_dir>
$ mkdir <template_plugin_dir>/build
$ cd <template_plugin_dir>/build
$ cmake -DOpenVINODeveloperPackage_DIR=<openvino_dir>/build ..
$ cmake -DOpenVINODeveloperPackage_DIR=<openvino_dir>/build -DENABLE_TEMPLATE_REGISTRATION=ON ..
$ make -j8
```
`ENABLE_TEMPLATE_REGISTRATION` cmake options registers the plugin in plugin.xml configuration file and enables install target for the plugin.

View File

@ -8,8 +8,6 @@ set(TARGET_NAME "openvino_template_plugin")
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
set(skip_plugin)
if (NOT ENABLE_TEMPLATE_REGISTRATION)
# Skip install and registration of template component
set(skip_plugin SKIP_INSTALL SKIP_REGISTRATION)