CI build support
The CI Docker file runs unit tests and builds the binary packages
of tracelibcpp and opentracing-cpp.
Change-Id: I8f4d6e7db08b890ba8bfc5d5594a4a1cb7cb279f
Signed-off-by: Roni Riska <roni.riska@nokia.com>
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 1c5ad29..a3b0e0d 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -33,10 +33,38 @@
set (tracelibcpp_VERSION_MAJOR "0")
set (tracelibcpp_VERSION_MINOR "0")
-set (tracelibcpp_VERSION_MICRO "1")
+set (tracelibcpp_VERSION_MICRO "2")
set (tracelibcpp_VERSION_STRING
"${tracelibcpp_VERSION_MAJOR}.${tracelibcpp_VERSION_MINOR}.${tracelibcpp_VERSION_MICRO}")
+# Set up cpack
+# Common
+set(CPACK_PACKAGE_DESCRIPTION_SUMMARY "C++ implementation RIC tracing initialization")
+set(CPACK_PACKAGE_VENDOR "Nokia")
+set(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_CURRENT_SOURCE_DIR}/README.md")
+set(CPACK_PACKAGE_VERSION_MAJOR ${tracelibcpp_VERSION_MAJOR})
+set(CPACK_PACKAGE_VERSION_MINOR ${tracelibcpp_VERSION_MINOR})
+set(CPACK_PACKAGE_VERSION_PATCH ${tracelibcpp_VERSION_MICRO})
+set(CPACK_COMPONENTS_ALL DIST DEVEL)
+set(CPACK_COMPONENTS_GROUPING ONE_PER_GROUP )
+set(CPACK_GENERATOR "RPM;DEB")
+set(CPACK_COMPONENTS_IGNORE_GROUPS 1)
+set(CPACK_PACKAGE_CONTACT None)
+
+# RPM
+set(CPACK_RPM_COMPONENT_INSTALL ON)
+set(CPACK_RPM_PACKAGE_GROUP "Development/Libraries")
+set(CPACK_RPM_FILE_NAME RPM-DEFAULT)
+set(CPACK_RPM_PACKAGE_AUTOREQ 1)
+
+# Debian
+set(CPACK_DEB_COMPONENT_INSTALL ON)
+set(CPACK_DEB_PACKAGE_COMPONENT ON)
+set(CPACK_DEBIAN_FILE_NAME DEB-DEFAULT)
+set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON)
+
+include(CPack)
+
# Add jaeger
hunter_add_package(jaegertracing)
find_package(jaegertracing CONFIG REQUIRED)