Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
Actor Framework
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
Actor Framework
Commits
0137c589
Unverified
Commit
0137c589
authored
Apr 27, 2022
by
Dominik Charousset
Committed by
GitHub
Apr 27, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1331
Add scaffold for binary packaging via CPack
parents
f06f38c6
6c08fe2d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
1 deletion
+30
-1
CMakeLists.txt
CMakeLists.txt
+24
-1
configure
configure
+6
-0
doc/png/logo-1000x1000.png
doc/png/logo-1000x1000.png
+0
-0
No files found.
CMakeLists.txt
View file @
0137c589
...
...
@@ -21,11 +21,12 @@ option(THREADS_PREFER_PTHREAD_FLAG "Prefer -pthread flag if available " ON)
# -- CAF options that are off by default ---------------------------------------
option
(
CAF_ENABLE_ACTOR_PROFILER
"Enable experimental profiler API"
OFF
)
option
(
CAF_ENABLE_CPACK
"Enable packaging via CPack"
OFF
)
option
(
CAF_ENABLE_CURL_EXAMPLES
"Build examples with libcurl"
OFF
)
option
(
CAF_ENABLE_PROTOBUF_EXAMPLES
"Build examples with Google Protobuf"
OFF
)
option
(
CAF_ENABLE_QT6_EXAMPLES
"Build examples with the Qt6 framework"
OFF
)
option
(
CAF_ENABLE_RUNTIME_CHECKS
"Build CAF with extra runtime assertions"
OFF
)
option
(
CAF_ENABLE_ACTOR_PROFILER
"Enable experimental profiler API"
OFF
)
# -- CAF options that are on by default ----------------------------------------
...
...
@@ -455,3 +456,25 @@ if(CAF_BUILD_INFO_FILE_PATH)
"
${
CAF_BUILD_INFO_FILE_PATH
}
"
@ONLY
)
endif
()
# -- CPack setup ---------------------------------------------------------------
if
(
CAF_ENABLE_CPACK
)
include
(
InstallRequiredSystemLibraries
)
set
(
CPACK_PACKAGE_NAME
"CAF"
)
set
(
CPACK_PACKAGE_VENDOR
"CAF Community"
)
set
(
CPACK_RESOURCE_FILE_LICENSE
"
${
PROJECT_SOURCE_DIR
}
/LICENSE"
)
set
(
CPACK_PACKAGE_VERSION_MAJOR
"
${
CAF_VERSION_MAJOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_MINOR
"
${
CAF_VERSION_MINOR
}
"
)
set
(
CPACK_PACKAGE_VERSION_PATCH
"
${
CAF_VERSION_PATCH
}
"
)
set
(
CPACK_PACKAGE_DESCRIPTION
"To learn more about CAF, please visit https://www.actor-framework.org."
)
set
(
CPACK_PACKAGE_DESCRIPTION_SUMMARY
"CAF offers high-level building blocks for concurrency & distribution."
)
set
(
CPACK_PACKAGE_HOMEPAGE_URL
"https://www.actor-framework.org"
)
set
(
CPACK_PACKAGE_ICON
"
${
PROJECT_SOURCE_DIR
}
/doc/png/logo-1000x1000.png"
)
if
(
NOT CPACK_SOURCE_GENERATOR
)
set
(
CPACK_SOURCE_GENERATOR
"TGZ"
)
endif
()
include
(
CPack
)
endif
()
configure
View file @
0137c589
...
...
@@ -21,6 +21,7 @@ General CMake options:
--generator=STRING set CMake generator (see cmake --help)
--cxx-flags=STRING set CMAKE_CXX_FLAGS when running CMake
--prefix=PATH set installation directory
--debug-postfix set CMAKE_DEBUG_POSTFIX
Locating packages in non-standard locations:
...
...
@@ -50,6 +51,7 @@ Convenience options:
Flags (use --enable-<name> to activate and --disable-<name> to deactivate):
cpack build with CPack package description [OFF]
shared-libs build shared library targets [ON]
export-compile-commands write JSON compile commands database [ON]
prefer-pthread-flag prefer -pthread flag if available [ON]
...
...
@@ -96,6 +98,7 @@ append_cache_entry() {
set_build_flag
()
{
FlagName
=
''
case
"
$1
"
in
cpack
)
FlagName
=
'CAF_ENABLE_CPACK'
;;
shared-libs
)
FlagName
=
'BUILD_SHARED_LIBS'
;;
export-compile-commands
)
FlagName
=
'CMAKE_EXPORT_COMPILE_COMMANDS'
;;
prefer-pthread-flag
)
FlagName
=
'THREADS_PREFER_PTHREAD_FLAG'
;;
...
...
@@ -181,6 +184,9 @@ while [ $# -ne 0 ]; do
--openssl-root-dir
=
*
)
append_cache_entry OPENSSL_ROOT_DIR PATH
"
$optarg
"
;;
--debug-postfix
=
*
)
append_cache_entry CMAKE_DEBUG_POSTFIX STRING
"
$optarg
"
;;
*
)
echo
"Invalid option '
$1
'. Try
$0
--help to see available options."
exit
1
...
...
doc/png/logo-1000x1000.png
0 → 100644
View file @
0137c589
78.4 KB
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