Fix build issue (#923)
authorMarcin Sielski <marcin.sielski@gmail.com>
Fri, 19 Jun 2020 19:06:30 +0000 (21:06 +0200)
committerGitHub <noreply@github.com>
Fri, 19 Jun 2020 19:06:30 +0000 (22:06 +0300)
* Fix build issue

Why:

* Enable to build OpenVINO.

This change addresses the need by:

* Adding include directories,
* Removing IE::inference_engine_c_api dependency.

* Remove IE::inference_engine_nn_builder reference.

Why:

* Enable to build OpenVINO.

This change addresses the need by:

* Removing  IE::inference_engine_nn_builder dependency.

Co-authored-by: Ilya Lavrenov <ilya.lavrenov@intel.com>
docs/template_extension/CMakeLists.txt

index 957f9b8..427ab21 100644 (file)
@@ -12,7 +12,9 @@ file(GLOB_RECURSE SRC *.cpp)
 
 add_library(${TARGET_NAME} SHARED ${SRC})
 
+target_include_directories(${TARGET_NAME} PRIVATE ${InferenceEngine_INCLUDE_DIRS})
+
 target_compile_definitions(${TARGET_NAME} PRIVATE IMPLEMENT_INFERENCE_EXTENSION_API)
-target_link_libraries(${TARGET_NAME} PRIVATE ${InferenceEngine_LIBRARIES}
+target_link_libraries(${TARGET_NAME} PRIVATE IE::inference_engine_legacy IE::inference_engine
                                              ${NGRAPH_LIBRARIES})
 # [cmake:extension]