From e2a71cf83b13eb789b1d90e8d6a9308db4be9304 Mon Sep 17 00:00:00 2001 From: Reinhard Date: Sun, 11 Aug 2024 10:36:10 +0200 Subject: [PATCH] Enable "make package" and "make package_source" --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 512e5c3d..e93966f4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,3 +34,8 @@ if(BUILD_GMOCK) else() add_subdirectory( googletest ) endif() + +set(CPACK_VERBATIM_VARIABLES YES) +set(CPACK_SOURCE_GENERATOR "TGZ") +set(CPACK_SOURCE_IGNORE_FILES "build;/\\.git/;.*~") +include(CPack)