Unverified Commit 1ced9ac3 authored by Ilya Lavrenov's avatar Ilya Lavrenov Committed by GitHub

CMAKE: introduce NGRAPH_COMPONENT_PREFIX prefix to install to OpenVINO specific location (#4411)

Co-authored-by: 's avatarSang Ik Lee <sang.ik.lee@intel.com>
Co-authored-by: 's avatarScott Cyphers <diyessi@users.noreply.github.com>
parent dcc56cc4
...@@ -322,10 +322,10 @@ endif() ...@@ -322,10 +322,10 @@ endif()
message(STATUS "Installation directory: ${CMAKE_INSTALL_PREFIX}") message(STATUS "Installation directory: ${CMAKE_INSTALL_PREFIX}")
# Destinations # Destinations
set(NGRAPH_INSTALL_LIB "${CMAKE_INSTALL_LIBDIR}") set(NGRAPH_INSTALL_LIB "${NGRAPH_COMPONENT_PREFIX}${CMAKE_INSTALL_LIBDIR}")
set(NGRAPH_INSTALL_INCLUDE "${CMAKE_INSTALL_INCLUDEDIR}") set(NGRAPH_INSTALL_INCLUDE "${NGRAPH_COMPONENT_PREFIX}${CMAKE_INSTALL_INCLUDEDIR}")
set(NGRAPH_INSTALL_DOC "${CMAKE_INSTALL_DOCDIR}") set(NGRAPH_INSTALL_DOC "${NGRAPH_COMPONENT_PREFIX}${CMAKE_INSTALL_DOCDIR}")
set(NGRAPH_INSTALL_BIN "${CMAKE_INSTALL_BINDIR}") set(NGRAPH_INSTALL_BIN "${NGRAPH_COMPONENT_PREFIX}${CMAKE_INSTALL_BINDIR}")
if (LINUX) if (LINUX)
if (DEFINED NGRAPH_RPATH) if (DEFINED NGRAPH_RPATH)
set(CMAKE_BUILD_RPATH "$ORIGIN:${NGRAPH_RPATH}") set(CMAKE_BUILD_RPATH "$ORIGIN:${NGRAPH_RPATH}")
...@@ -639,7 +639,7 @@ if (NGRAPH_EXPORT_TARGETS_ENABLE) ...@@ -639,7 +639,7 @@ if (NGRAPH_EXPORT_TARGETS_ENABLE)
install(EXPORT ngraphTargets install(EXPORT ngraphTargets
FILE ngraphTargets.cmake FILE ngraphTargets.cmake
NAMESPACE ngraph:: NAMESPACE ngraph::
DESTINATION cmake DESTINATION ${NGRAPH_COMPONENT_PREFIX}cmake
COMPONENT ngraph) COMPONENT ngraph)
configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/share/ngraphConfig.cmake.in configure_package_config_file(${CMAKE_CURRENT_SOURCE_DIR}/cmake/share/ngraphConfig.cmake.in
...@@ -652,14 +652,15 @@ if (NGRAPH_EXPORT_TARGETS_ENABLE) ...@@ -652,14 +652,15 @@ if (NGRAPH_EXPORT_TARGETS_ENABLE)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ngraphConfig.cmake install(FILES ${CMAKE_CURRENT_BINARY_DIR}/ngraphConfig.cmake
${CMAKE_CURRENT_BINARY_DIR}/ngraphConfigVersion.cmake ${CMAKE_CURRENT_BINARY_DIR}/ngraphConfigVersion.cmake
DESTINATION cmake DESTINATION ${NGRAPH_COMPONENT_PREFIX}cmake
COMPONENT ngraph) COMPONENT ngraph)
endif() endif()
install(DIRECTORY install(DIRECTORY
${CMAKE_CURRENT_SOURCE_DIR}/licenses ${CMAKE_CURRENT_SOURCE_DIR}/licenses
DESTINATION "." DESTINATION "${NGRAPH_COMPONENT_PREFIX}."
COMPONENT ngraph COMPONENT ngraph
) )
install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION "." COMPONENT ngraph)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION DESTINATION "." COMPONENT ngraph) install(FILES ${CMAKE_CURRENT_SOURCE_DIR}/LICENSE DESTINATION "${NGRAPH_COMPONENT_PREFIX}." COMPONENT ngraph)
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/VERSION DESTINATION "${NGRAPH_COMPONENT_PREFIX}." COMPONENT ngraph)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment