Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
N
ngraph
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
ngraph
Commits
fbbc6ad0
Commit
fbbc6ad0
authored
Dec 03, 2019
by
Ilya Lavrenov
Committed by
Scott Cyphers
Dec 03, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CMAKE: usage relative paths, added ngraph component (#3970)
parent
dd66409a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
CMakeLists.txt
CMakeLists.txt
+12
-9
CMakeLists.txt
src/ngraph/CMakeLists.txt
+10
-5
No files found.
CMakeLists.txt
View file @
fbbc6ad0
...
...
@@ -328,10 +328,10 @@ endif()
message
(
STATUS
"Installation directory:
${
CMAKE_INSTALL_PREFIX
}
"
)
# Destinations
set
(
NGRAPH_INSTALL_LIB
"
${
CMAKE_INSTALL_
PREFIX
}
/
${
CMAKE_INSTALL_
LIBDIR
}
"
)
set
(
NGRAPH_INSTALL_INCLUDE
"
${
CMAKE_INSTALL_
PREFIX
}
/
${
CMAKE_INSTALL_
INCLUDEDIR
}
"
)
set
(
NGRAPH_INSTALL_DOC
"
${
CMAKE_INSTALL_
PREFIX
}
/
${
CMAKE_INSTALL_
DOCDIR
}
"
)
set
(
NGRAPH_INSTALL_BIN
"
${
CMAKE_INSTALL_
PREFIX
}
/
${
CMAKE_INSTALL_
BINDIR
}
"
)
set
(
NGRAPH_INSTALL_LIB
"
${
CMAKE_INSTALL_LIBDIR
}
"
)
set
(
NGRAPH_INSTALL_INCLUDE
"
${
CMAKE_INSTALL_INCLUDEDIR
}
"
)
set
(
NGRAPH_INSTALL_DOC
"
${
CMAKE_INSTALL_DOCDIR
}
"
)
set
(
NGRAPH_INSTALL_BIN
"
${
CMAKE_INSTALL_BINDIR
}
"
)
if
(
LINUX
)
if
(
DEFINED NGRAPH_RPATH
)
set
(
CMAKE_BUILD_RPATH
"$ORIGIN:
${
NGRAPH_RPATH
}
"
)
...
...
@@ -637,7 +637,8 @@ export(TARGETS ngraph NAMESPACE ngraph:: FILE "${CMAKE_CURRENT_BINARY_DIR}/ngrap
install
(
EXPORT ngraphTargets
FILE ngraphTargets.cmake
NAMESPACE ngraph::
DESTINATION cmake
)
DESTINATION cmake
COMPONENT ngraph
)
configure_package_config_file
(
${
CMAKE_CURRENT_SOURCE_DIR
}
/cmake/share/ngraphConfig.cmake.in
${
CMAKE_CURRENT_BINARY_DIR
}
/ngraphConfig.cmake
...
...
@@ -649,11 +650,13 @@ write_basic_package_version_file(${CMAKE_CURRENT_BINARY_DIR}/ngraphConfigVersion
install
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/licenses
DESTINATION
"
${
CMAKE_INSTALL_PREFIX
}
"
DESTINATION
"."
COMPONENT ngraph
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/LICENSE DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/VERSION DESTINATION
${
CMAKE_INSTALL_PREFIX
}
)
install
(
FILES
${
CMAKE_CURRENT_SOURCE_DIR
}
/LICENSE DESTINATION
"."
COMPONENT ngraph
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/VERSION DESTINATION
"."
COMPONENT ngraph
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/ngraphConfig.cmake
${
CMAKE_CURRENT_BINARY_DIR
}
/ngraphConfigVersion.cmake
DESTINATION
${
CMAKE_INSTALL_PREFIX
}
/cmake
)
DESTINATION cmake
COMPONENT ngraph
)
src/ngraph/CMakeLists.txt
View file @
fbbc6ad0
...
...
@@ -729,16 +729,21 @@ endif()
#-----------------------------------------------------------------------------------------------
# nGraph
install
(
TARGETS ngraph DESTINATION
${
CMAKE_INSTALL_LIBDIR
}
EXPORT ngraphTargets
)
# libngraph.so
install
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/
DESTINATION
"
${
NGRAPH_INSTALL_INCLUDE
}
/ngraph"
install
(
TARGETS ngraph EXPORT ngraphTargets
RUNTIME DESTINATION
${
NGRAPH_INSTALL_LIB
}
ARCHIVE DESTINATION
${
NGRAPH_INSTALL_LIB
}
LIBRARY DESTINATION
${
NGRAPH_INSTALL_LIB
}
COMPONENT ngraph
)
install
(
DIRECTORY
${
CMAKE_CURRENT_SOURCE_DIR
}
/
DESTINATION
${
NGRAPH_INSTALL_INCLUDE
}
/ngraph
COMPONENT ngraph
FILES_MATCHING
PATTERN
"*.hpp"
PATTERN
"*.h"
)
install
(
FILES
${
CMAKE_CURRENT_BINARY_DIR
}
/version.hpp
DESTINATION
"
${
NGRAPH_INSTALL_INCLUDE
}
/ngraph"
)
DESTINATION
${
NGRAPH_INSTALL_INCLUDE
}
/ngraph
COMPONENT ngraph
)
set
(
CPACK_GENERATOR
"DEB"
)
set
(
CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment