summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Muck <christian.muck@bmw.de>2011-04-27 15:50:04 +0200
committerChristian Muck <christian.muck@bmw.de>2011-04-27 15:50:04 +0200
commit3f2de0e4279672318f736c4ef2a2363dec2760a2 (patch)
tree069798cc529a4380d18333c0f96ce305c63d2da1
parent0b265ad84e2b1dd245a8572f54c329aac877505b (diff)
downloadDLT-daemon-3f2de0e4279672318f736c4ef2a2363dec2760a2.tar.gz
Fixed CPack to generate DEB,RPM and TGZ packages of dlt. Use: cmake .. -> cpack ..v2.2.0
-rwxr-xr-xCMakeLists.txt29
1 files changed, 11 insertions, 18 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2f966fd..76739be 100755
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -231,17 +231,16 @@ CONFIGURE_FILE(
EXPORT_LIBRARY_DEPENDENCIES( "${PROJECT_NAME}LibDeps.cmake" )
+
#######################
# CPack configuration #
#######################
-SET(CPACK_COMPONENTS_ALL base devel ${DOC_COMPONENT} )
-SET(CPACK_COMPONENT_BASE_DISPLAY_NAME "Basics" )
-SET(CPACK_COMPONENT_DEVEL_DISPLAY_NAME "Development files" )
-SET(CPACK_COMPONENT_DOC_DISPLAY_NAME "Documentation" )
+SET(CPACK_GENERATOR "DEB;RPM;TGZ")
-SET(CPACK_COMPONENT_BASE_DESCRIPTION
-"This component provides a standardised log and trace interface, based on the
+SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "Alexander Wenzel") #required
+SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "automotive-dlt")
+SET(CPACK_PACKAGE_DESCRIPTION "This component provides a standardised log and trace interface, based on the
standardised protocol specified in the AUTOSAR standard 4.0 DLT.
This component can be used by GENIVI components and other applications as
logging facility providing
@@ -250,16 +249,10 @@ logging facility providing
- the DLT daemon adaptors
- the DLT client console utilities
- the DLT test applications ")
-SET(CPACK_COMPONENT_DEVEL_DESCRIPTION
- "This component provides the development libraries and includes for automotive-dlt.")
-SET(CPACK_COMPONENT_DOC_DESCRIPTION
- "This component provides the documentation for automotive-dlt.")
-
-SET(CPACK_COMPONENT_DEVEL_DEPENDS base)
-#SET(CPACK_COMPONENT_DOC_DEPENDS base)
-
-SET(CPACK_COMPONENT_BASE_REQUIRED)
-
-
-
+SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_CURRENT_SOURCE_DIR}/LICENSE.txt")
+SET(CPACK_RESOURCE_FILE_README "${CMAKE_CURRENT_SOURCE_DIR}/README.txt")
+SET(CPACK_PACKAGE_VERSION_MAJOR ${PRINT_MAJOR_VERSION})
+SET(CPACK_PACKAGE_VERSION_MINOR ${PRINT_MINOR_VERSION})
+SET(CPACK_PACKAGE_VERSION_PATCH ${PRINT_PATCH_LEVEL})
+INCLUDE(CPack)