summaryrefslogtreecommitdiffstats
path: root/Source/CPack/cmCPackTarCompressGenerator.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/CPack/cmCPackTarCompressGenerator.h')
-rw-r--r--Source/CPack/cmCPackTarCompressGenerator.h28
1 files changed, 28 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackTarCompressGenerator.h b/Source/CPack/cmCPackTarCompressGenerator.h
new file mode 100644
index 0000000..37c7f48
--- /dev/null
+++ b/Source/CPack/cmCPackTarCompressGenerator.h
@@ -0,0 +1,28 @@
+/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
+ file Copyright.txt or https://cmake.org/licensing for details. */
+#ifndef cmCPackTarCompressGenerator_h
+#define cmCPackTarCompressGenerator_h
+
+#include "cmConfigure.h" // IWYU pragma: keep
+
+#include "cmCPackArchiveGenerator.h"
+#include "cmCPackGenerator.h"
+
+/** \class cmCPackTarCompressGenerator
+ * \brief A generator for TarCompress files
+ */
+class cmCPackTarCompressGenerator : public cmCPackArchiveGenerator
+{
+public:
+ cmCPackTypeMacro(cmCPackTarCompressGenerator, cmCPackArchiveGenerator);
+ /**
+ * Construct generator
+ */
+ cmCPackTarCompressGenerator();
+ ~cmCPackTarCompressGenerator() override;
+
+protected:
+ const char* GetOutputExtension() override { return ".tar.Z"; }
+};
+
+#endif