Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
planning
ThirdParty
tinyxml2
Commits
42be1424
Commit
42be1424
authored
1 year ago
by
龙肖灵
Browse files
Options
Download
Email Patches
Plain Diff
提交打包功能。
parent
1dee28e5
rp
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+2
-0
CMakeLists.txt
cmake/packing.cmake
+43
-0
cmake/packing.cmake
with
45 additions
and
0 deletions
+45
-0
CMakeLists.txt
+
2
-
0
View file @
42be1424
...
...
@@ -127,3 +127,5 @@ install(
DESTINATION
"
${
tinyxml2_INSTALL_PKGCONFIGDIR
}
"
COMPONENT tinyxml2_development
)
include
(
cmake/packing.cmake
)
This diff is collapsed.
Click to expand it.
cmake/packing.cmake
0 → 100644
+
43
-
0
View file @
42be1424
# these are cache variables, so they could be overwritten with -D,
set
(
CPACK_PACKAGE_NAME
${
PROJECT_NAME
}
CACHE STRING
"The resulting package name"
)
# which is useful in case of packing only selected components instead of the whole thing
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"RTinyXML-2 is a simple, small, efficient, C++ XML parser that can be easily integrated into other programs."
CACHE STRING
"Package description for the package metadata"
)
set
(
CPACK_PACKAGE_VENDOR
"RoboticPlus Planning"
)
set
(
CPACK_VERBATIM_VARIABLES YES
)
set
(
CPACK_PACKAGE_INSTALL_DIRECTORY
${
CPACK_PACKAGE_NAME
}
)
SET
(
CPACK_OUTPUT_FILE_PREFIX
"
${
CMAKE_SOURCE_DIR
}
/_packages"
)
if
(
WIN32
)
set
(
CPACK_PACKAGING_INSTALL_PREFIX
""
)
else
()
set
(
CPACK_PACKAGING_INSTALL_PREFIX
${
CMAKE_INSTALL_PREFIX
}
)
endif
()
set
(
CPACK_PACKAGE_VERSION_MAJOR
${
PROJECT_VERSION_MAJOR
}
)
set
(
CPACK_PACKAGE_VERSION_MINOR
${
PROJECT_VERSION_MINOR
}
)
set
(
CPACK_PACKAGE_VERSION_PATCH
${
PROJECT_VERSION_PATCH
}
)
set
(
CPACK_PACKAGE_CONTACT
"xiaoling_long@roboticplus.com"
)
set
(
CPACK_DEBIAN_PACKAGE_MAINTAINER
"龙肖灵"
)
#set(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE")
#set(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
set
(
CPACK_IGNORE_FILES
"
${
CMAKE_BINARY_DIR
}
"
)
# package name for deb. If set, then instead of some-application-0.9.2-Linux.deb
# you'll get some-application_0.9.2_amd64.deb (note the underscores too)
set
(
CPACK_DEBIAN_FILE_NAME DEB-DEFAULT
)
# that is if you want every group to have its own package,
# although the same will happen if this is not set (so it defaults to ONE_PER_GROUP)
# and CPACK_DEB_COMPONENT_INSTALL is set to YES
set
(
CPACK_COMPONENTS_GROUPING ALL_COMPONENTS_IN_ONE
)
#ONE_PER_GROUP)
# without this you won't be able to pack only specified component
set
(
CPACK_DEB_COMPONENT_INSTALL YES
)
include
(
CPack
)
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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
Menu
Explore
Projects
Groups
Snippets