diff options
author | KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com> | 2020-11-06 11:17:08 +0700 |
---|---|---|
committer | Saya Sugiura <ssugiura@jp.adit-jv.com> | 2021-01-06 09:19:55 +0900 |
commit | 8c940cecd4982164d664e86347a8066a04d92030 (patch) | |
tree | 6d39d414af3856fed5dfc67c470915e6a264e53f | |
parent | 970aa48ab59b93f5bc05235689344382c6e253e2 (diff) | |
download | DLT-daemon-8c940cecd4982164d664e86347a8066a04d92030.tar.gz |
CMakeList: implement cpack for debian package
Introduce cpack options to build DLT debian package
Signed-off-by: KHANH LUONG HONG DUY <khanh.luonghongduy@vn.bosch.com>
-rw-r--r-- | CMakeLists.txt | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 5a8404d..8bc8152 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -245,6 +245,12 @@ if (WITH_DLT_UNIT_TESTS) add_subdirectory(tests) endif() +SET(CPACK_GENERATOR "DEB") +SET(CPACK_PACKAGE_NAME "dlt_${DLT_REVISION}") +SET(CPACK_PACKAGE_VERSION "${PROJECT_VERSION}") +SET(CPACK_DEBIAN_PACKAGE_MAINTAINER "genivi-diagnostic-log-and-trace@lists.genivi.org") +INCLUDE(CPack) + message(STATUS) message(STATUS "-------------------------------------------------------------------------------") message(STATUS "Build for Version ${PROJECT_VERSION} build ${DLT_REVISION} version state ${DLT_VERSION_STATE}") |