# create target
cython_add_module(${TARGET_NAME} ${SOURCE})
+set(INSTALLED_TARGETS ${TARGET_NAME})
file(GLOB OTHER_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/*.pyx)
add_dependencies(${TARGET_NAME} ${PYX_NAME})
target_include_directories(${PYX_NAME} PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(${PYX_NAME} PRIVATE ${InferenceEngine_LIBRARIES})
+ list(APPEND INSTALLED_TARGETS ${PYX_NAME})
endforeach()
function(python_disable_deprecated_warnings)
# install
-install(TARGETS ${TARGET_NAME}
+install(TARGETS ${INSTALLED_TARGETS}
RUNTIME DESTINATION python/${PYTHON_VERSION}/openvino/inference_engine COMPONENT ${PYTHON_VERSION}
ARCHIVE DESTINATION python/${PYTHON_VERSION}/openvino/inference_engine COMPONENT ${PYTHON_VERSION}
LIBRARY DESTINATION python/${PYTHON_VERSION}/openvino/inference_engine COMPONENT ${PYTHON_VERSION})