diff --git a/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txt b/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txt index 76512189541525..5faf2c9f01c4a0 100644 --- a/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txt +++ b/src/plugins/intel_npu/src/utils/src/zero/CMakeLists.txt @@ -16,7 +16,7 @@ add_library(openvino::npu_zero_utils ALIAS ${TARGET_NAME}) set_target_properties(${TARGET_NAME} PROPERTIES EXPORT_NAME npu_zero_utils) add_library(level-zero-headers INTERFACE) -set_property(TARGET level-zero-headers APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES $) +set_property(TARGET level-zero-headers APPEND PROPERTY INTERFACE_INCLUDE_DIRECTORIES $) add_library(LevelZero::Headers ALIAS level-zero-headers) target_include_directories(${TARGET_NAME} @@ -30,6 +30,7 @@ target_link_libraries(${TARGET_NAME} PUBLIC openvino::runtime::dev) # # targets install # + ov_install_static_lib(${TARGET_NAME} ${NPU_PLUGIN_COMPONENT}) ov_developer_package_export_targets(TARGET openvino::npu_zero_utils @@ -41,3 +42,14 @@ ov_install_static_lib(level-zero-ext ${NPU_PLUGIN_COMPONENT}) ov_developer_package_export_targets(TARGET level-zero-headers) ov_install_static_lib(level-zero-headers ${NPU_PLUGIN_COMPONENT}) + +if(TARGET ze_loader) + ov_developer_package_export_targets(TARGET ze_loader) + ov_install_static_lib(ze_loader ${NPU_PLUGIN_COMPONENT}) + + add_dependencies(${TARGET_NAME} ze_loader) + + # TODO: remove once https://github.com/oneapi-src/level-zero/pull/243 is merged and made a part of official release + ov_developer_package_export_targets(TARGET utils) + ov_install_static_lib(utils ${NPU_PLUGIN_COMPONENT}) +endif() diff --git a/thirdparty/dependencies.cmake b/thirdparty/dependencies.cmake index 83f7e209bcf95b..51c9c63c971f05 100644 --- a/thirdparty/dependencies.cmake +++ b/thirdparty/dependencies.cmake @@ -80,7 +80,7 @@ if(ENABLE_INTEL_NPU) endif() endif() - if(NOT libze_loader_FOUND) + if(NOT level_zero_FOUND) add_subdirectory(thirdparty/level_zero EXCLUDE_FROM_ALL) add_library(LevelZero::LevelZero ALIAS ze_loader) endif()