* Fixed comments after #11155 * Add information about plugin option
This commit is contained in:
parent
a2705b1fed
commit
4dc0d6e711
@ -27,7 +27,7 @@ endif()
|
|||||||
# [OBJECT_LIBRARIES <object_libs>]
|
# [OBJECT_LIBRARIES <object_libs>]
|
||||||
# [VERSION_DEFINES_FOR <source>]
|
# [VERSION_DEFINES_FOR <source>]
|
||||||
# [SKIP_INSTALL]
|
# [SKIP_INSTALL]
|
||||||
# [SKIP_REGISTRATION]
|
# [SKIP_REGISTRATION] Skip creation of <device>.xml
|
||||||
# [ADD_CLANG_FORMAT]
|
# [ADD_CLANG_FORMAT]
|
||||||
# )
|
# )
|
||||||
#
|
#
|
||||||
@ -147,6 +147,7 @@ function(ie_add_plugin)
|
|||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
# Enable for static build to generate correct plugins.hpp
|
||||||
if(NOT IE_PLUGIN_SKIP_REGISTRATION OR NOT BUILD_SHARED_LIBS)
|
if(NOT IE_PLUGIN_SKIP_REGISTRATION OR NOT BUILD_SHARED_LIBS)
|
||||||
# check that plugin with such name is not registered
|
# check that plugin with such name is not registered
|
||||||
foreach(plugin_entry IN LISTS PLUGIN_FILES)
|
foreach(plugin_entry IN LISTS PLUGIN_FILES)
|
||||||
|
@ -14,6 +14,8 @@ $ make -j8
|
|||||||
$ cd <template_plugin_dir>
|
$ cd <template_plugin_dir>
|
||||||
$ mkdir <template_plugin_dir>/build
|
$ mkdir <template_plugin_dir>/build
|
||||||
$ cd <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
|
$ make -j8
|
||||||
```
|
```
|
||||||
|
|
||||||
|
`ENABLE_TEMPLATE_REGISTRATION` cmake options registers the plugin in plugin.xml configuration file and enables install target for the plugin.
|
||||||
|
@ -8,8 +8,6 @@ set(TARGET_NAME "openvino_template_plugin")
|
|||||||
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
file(GLOB_RECURSE SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
|
||||||
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
|
file(GLOB_RECURSE HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp)
|
||||||
|
|
||||||
set(skip_plugin)
|
|
||||||
|
|
||||||
if (NOT ENABLE_TEMPLATE_REGISTRATION)
|
if (NOT ENABLE_TEMPLATE_REGISTRATION)
|
||||||
# Skip install and registration of template component
|
# Skip install and registration of template component
|
||||||
set(skip_plugin SKIP_INSTALL SKIP_REGISTRATION)
|
set(skip_plugin SKIP_INSTALL SKIP_REGISTRATION)
|
||||||
|
Loading…
Reference in New Issue
Block a user