Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
BC
public
belr
Commits
4b62e90c
Commit
4b62e90c
authored
Mar 01, 2017
by
François Grisez
Browse files
Add CPack targets for source package generation
parent
dab8030b
Changes
1
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
4b62e90c
...
...
@@ -21,12 +21,8 @@
############################################################################
cmake_minimum_required
(
VERSION 3.0
)
project
(
BELR C CXX
)
project
(
BELR
VERSION 0.1.2 LANGUAGES
C CXX
)
set
(
BELR_MAJOR_VERSION
"0"
)
set
(
BELR_MINOR_VERSION
"1"
)
set
(
BELR_MICRO_VERSION
"2"
)
set
(
BELR_VERSION
"
${
BELR_MAJOR_VERSION
}
.
${
BELR_MINOR_VERSION
}
.
${
BELR_MICRO_VERSION
}
"
)
set
(
BELR_SO_VERSION
"1"
)
option
(
ENABLE_SHARED
"Build shared library."
ON
)
...
...
@@ -146,3 +142,16 @@ install(FILES
"
${
CMAKE_CURRENT_BINARY_DIR
}
/BelrConfig.cmake"
DESTINATION
${
ConfigPackageLocation
}
)
# CPack settings
set
(
CPACK_PACKAGE_NAME
"belr"
)
set
(
CPACK_PACKAGE_VERSION
${
PROJECT_VERSION
}
)
set
(
CPACK_SOURCE_GENERATOR
"TGZ"
)
set
(
CPACK_SOURCE_PACKAGE_FILE_NAME
"
${
CPACK_PACKAGE_NAME
}
-
${
CPACK_PACKAGE_VERSION
}
"
)
set
(
CPACK_SOURCE_IGNORE_FILES
"^
${
CMAKE_BINARY_DIR
}
"
"/
\\\\
..+"
)
include
(
CPack
)
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