Skip to content

Commit

Permalink
Debian packaging support
Browse files Browse the repository at this point in the history
  • Loading branch information
tm604 committed Jul 1, 2015
1 parent 2efa72e commit dce5d3c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ PROJECT(asio-protocols)
enable_testing()
set (VERSION_MAJOR 1)
set (VERSION_MINOR 0)
set (VERSION_MINOR 3)

set(Protocols_LIBRARY asio-protocols)

set(Boost_USE_MULTITHREADED ON)
Expand Down Expand Up @@ -104,3 +106,15 @@ add_test (amqp_tests amqp_tests --log_level=all --log_format=XML --log_sink=amqp
add_test (http_tests http_tests --log_level=all --log_format=XML --log_sink=http_tests.xml)
add_test (stream_tests stream_tests --log_level=all --log_format=XML --log_sink=stream_tests.xml)

include (InstallRequiredSystemLibraries)
set (CPACK_PACKAGE_NAME "libasio-protocols")
set (CPACK_PACKAGE_VENDOR "")
set (CPACK_PACKAGE_VERSION_MAJOR "${VERSION_MAJOR}")
set (CPACK_PACKAGE_VERSION_MINOR "${VERSION_MINOR}")
set (CPACK_PACKAGE_CONTACT "Tom Molesworth <[email protected]>")
set (CPACK_PACKAGE_DESCRIPTION_SUMMARY "C++ futures implementation")
set (CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.debian")
set (CPACK_PACKAGE_FILE_NAME "libasio-protocols-${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_PATCH}-1")
set (CPACK_GENERATOR "TGZ;DEB")
set (CPACK_DEBIAN_PACKAGE_SHLIBDEPS "ON")
include (CPack)
1 change: 1 addition & 0 deletions README.debian
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Support for various networking protocols using Boost.ASIO.

0 comments on commit dce5d3c

Please sign in to comment.