1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
|
--- a/src/vpux_driver_compiler/CMakeLists.txt
+++ b/src/vpux_driver_compiler/CMakeLists.txt
@@ -30,7 +30,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
add_subdirectory(src)
add_subdirectory(test)
-install(
+#[[install(
FILES
"${PROJECT_SOURCE_DIR}/src/vpux_driver_compiler/CHANGES.txt"
DESTINATION ${INSTALL_DESTINATION}
@@ -40,4 +40,4 @@ install(
FILES
"${PROJECT_SOURCE_DIR}/src/vpux_driver_compiler/README.md"
DESTINATION ${INSTALL_DESTINATION}
- COMPONENT ${INSTALL_COMPONENT})
+ COMPONENT ${INSTALL_COMPONENT})]]
--- a/src/vpux_driver_compiler/src/vpux_compiler_l0/CMakeLists.txt
+++ b/src/vpux_driver_compiler/src/vpux_compiler_l0/CMakeLists.txt
@@ -93,13 +93,13 @@ add_dependencies(${TARGET_NAME} VPUXLoader)
ov_add_api_validator_post_build_step(TARGET ${TARGET_NAME})
# Install library related files to component
-install_target_with_debug_files(${TARGET_NAME} ${INSTALL_DESTINATION}/lib ${INSTALL_COMPONENT})
+install_target_with_debug_files(${TARGET_NAME} lib ${INSTALL_COMPONENT})
# Install library header
install(
FILES
"${PROJECT_SOURCE_DIR}/src/vpux_driver_compiler/include/npu_driver_compiler.h"
- DESTINATION ${INSTALL_DESTINATION}
+ DESTINATION include
COMPONENT ${INSTALL_COMPONENT})
# Install library for plugin if building for plugin and not for driver
--- a/src/vpux_driver_compiler/test/functional/CMakeLists.txt
+++ b/src/vpux_driver_compiler/test/functional/CMakeLists.txt
@@ -67,7 +67,7 @@ endif()
if(ENABLE_PREBUILT_LLVM_MLIR_LIBS)
find_package(MLIR REQUIRED CONFIG)
endif()
-
+set_target_properties(${FUNCTIONAL_TARGET} PROPERTIES OUTPUT_NAME intel-npu-${FUNCTIONAL_TARGET})
target_include_directories(${FUNCTIONAL_TARGET}
SYSTEM PRIVATE
$<BUILD_INTERFACE:${LLVM_SOURCE_DIR}/include>
@@ -89,4 +89,4 @@ ov_link_system_libraries(${FUNCTIONAL_TARGET}
ov_add_api_validator_post_build_step(TARGET vpuxCompilerL0Test)
# Install functional test to component
-install_target_with_debug_files(vpuxCompilerL0Test ${INSTALL_DESTINATION} ${INSTALL_COMPONENT})
+install(TARGETS ${FUNCTIONAL_TARGET} RUNTIME DESTINATION bin COMPONENT ${INSTALL_COMPONENT})
--- a/src/vpux_driver_compiler/test/smoke/CMakeLists.txt
+++ b/src/vpux_driver_compiler/test/smoke/CMakeLists.txt
@@ -12,6 +12,7 @@ include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include)
# compilerTest as smoke test
find_package(OpenVINO REQUIRED COMPONENTS Runtime)
add_executable(compilerTest compilerTest.cpp)
+set_target_properties(compilerTest PROPERTIES OUTPUT_NAME intel-npu-compilerTest)
target_link_libraries(compilerTest
PUBLIC
${LINK_COMPILER_LIBRARY} # VCL function
@@ -23,15 +24,17 @@ ov_add_api_validator_post_build_step(TARGET compilerTest)
# profilingTest to check profiling API
add_executable(profilingTest profilingTest.c)
+set_target_properties(profilingTest PROPERTIES OUTPUT_NAME intel-npu-profilingTest)
target_link_libraries(profilingTest PUBLIC ${LINK_COMPILER_LIBRARY})
ov_add_api_validator_post_build_step(TARGET profilingTest)
# loaderTest to check npu_elf
add_executable(loaderTest loaderTest.cpp)
+set_target_properties(loaderTest PROPERTIES OUTPUT_NAME intel-npu-loaderTest)
target_link_libraries(loaderTest PUBLIC npu_elf npu_llvm_utils npu_ov_utils LLVMSupport)
ov_add_api_validator_post_build_step(TARGET loaderTest)
# Install smoke tests to component
-install_target_with_debug_files(compilerTest ${INSTALL_DESTINATION} ${INSTALL_COMPONENT})
-install_target_with_debug_files(profilingTest ${INSTALL_DESTINATION} ${INSTALL_COMPONENT})
-install_target_with_debug_files(loaderTest ${INSTALL_DESTINATION} ${INSTALL_COMPONENT})
+install(TARGETS compilerTest RUNTIME DESTINATION bin COMPONENT ${INSTALL_COMPONENT})
+install(TARGETS profilingTest RUNTIME DESTINATION bin COMPONENT ${INSTALL_COMPONENT})
+install(TARGETS loaderTest RUNTIME DESTINATION bin COMPONENT ${INSTALL_COMPONENT})
|