|
|
|
@ -393,6 +393,7 @@ else()
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
endif()
|
|
|
|
|
install(DIRECTORY ${flatbuffers_INC}/ DESTINATION ${RUNTIME_INC_DIR}/third_party COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
|
|
|
|
|
if(PLATFORM_ARM64)
|
|
|
|
|
if(SUPPORT_NPU)
|
|
|
|
|
install(FILES ${DDK_LIB_PATH}/libhiai.so DESTINATION ${RUNTIME_DIR}/third_party/hiai_ddk/lib
|
|
|
|
@ -406,20 +407,16 @@ if(PLATFORM_ARM64)
|
|
|
|
|
DESTINATION ${RUNTIME_DIR}/third_party/hiai_ddk/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/include/kernel_interface.h DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
|
|
|
|
PATTERN "register_kernel.h")
|
|
|
|
|
if(SUPPORT_TRAIN)
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.so DESTINATION
|
|
|
|
|
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.a DESTINATION
|
|
|
|
|
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
else()
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
|
|
|
|
PATTERN "registry*" EXCLUDE)
|
|
|
|
|
endif()
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
@ -481,9 +478,8 @@ if(PLATFORM_ARM64)
|
|
|
|
|
${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
endif()
|
|
|
|
|
if(MSLITE_ENABLE_CONVERTER)
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${CONVERTER_ROOT_DIR}/include
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h"
|
|
|
|
|
PATTERN "train*" EXCLUDE PATTERN "delegate.h" EXCLUDE PATTERN "lite_session.h" EXCLUDE)
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION
|
|
|
|
|
${CONVERTER_ROOT_DIR}/include/registry COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${API_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/api
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${MINDAPI_BASE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/mindapi/base
|
|
|
|
@ -650,20 +646,16 @@ elseif(PLATFORM_ARM32)
|
|
|
|
|
DESTINATION ${RUNTIME_DIR}/third_party/hiai_ddk/lib COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/include/kernel_interface.h DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
|
|
|
|
PATTERN "register_kernel.h")
|
|
|
|
|
if(SUPPORT_TRAIN)
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.so DESTINATION
|
|
|
|
|
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.a DESTINATION
|
|
|
|
|
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
else()
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
|
|
|
|
PATTERN "registry*" EXCLUDE)
|
|
|
|
|
endif()
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
@ -758,17 +750,11 @@ elseif(WIN32)
|
|
|
|
|
${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
endif()
|
|
|
|
|
endif()
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/include/kernel_interface.h DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
|
|
|
|
PATTERN "register_kernel.h")
|
|
|
|
|
if(SUPPORT_TRAIN)
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
|
|
|
|
else()
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
|
|
|
|
PATTERN "registry*" EXCLUDE)
|
|
|
|
|
endif()
|
|
|
|
|
install(FILES ${TOP_DIR}/build/mindspore/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${TOP_DIR}/build/mindspore/schema/ops_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
|
|
|
@ -804,20 +790,16 @@ elseif(WIN32)
|
|
|
|
|
install(FILES ${LIB_LIST} DESTINATION ${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
endif()
|
|
|
|
|
else()
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/include/kernel_interface.h DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${RUNTIME_INC_DIR}/registry
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "register_kernel_interface.h"
|
|
|
|
|
PATTERN "register_kernel.h")
|
|
|
|
|
if(SUPPORT_TRAIN)
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "registry*" EXCLUDE)
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.so DESTINATION
|
|
|
|
|
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/src/${MINDSPORE_LITE_TRAIN_LIB_NAME}.a DESTINATION
|
|
|
|
|
${RUNTIME_LIB_DIR} COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
else()
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${RUNTIME_INC_DIR}
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h" PATTERN "train*" EXCLUDE
|
|
|
|
|
PATTERN "registry*" EXCLUDE)
|
|
|
|
|
endif()
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/build/schema/model_generated.h DESTINATION ${RUNTIME_INC_DIR}/schema
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
@ -853,9 +835,10 @@ else()
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
endif()
|
|
|
|
|
if(MSLITE_ENABLE_CONVERTER)
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/ DESTINATION ${CONVERTER_ROOT_DIR}/include
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME} FILES_MATCHING PATTERN "*.h"
|
|
|
|
|
PATTERN "train*" EXCLUDE PATTERN "delegate.h" EXCLUDE PATTERN "lite_session.h" EXCLUDE)
|
|
|
|
|
install(FILES ${TOP_DIR}/mindspore/lite/include/kernel_interface.h DESTINATION ${CONVERTER_ROOT_DIR}/include
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(DIRECTORY ${TOP_DIR}/mindspore/lite/include/registry/ DESTINATION ${CONVERTER_ROOT_DIR}/include/registry
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${API_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/api
|
|
|
|
|
COMPONENT ${RUNTIME_COMPONENT_NAME})
|
|
|
|
|
install(FILES ${MINDAPI_BASE_HEADER} DESTINATION ${CONVERTER_ROOT_DIR}/include/core/mindapi/base
|
|
|
|
|