diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2014-07-09 22:21:36 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-07-29 13:48:41 (GMT) |
commit | f931a18c334bd471c22f7af4e580b2433ba14a69 (patch) | |
tree | 671a48024965cee44f98369de901da6c9957f327 /Source/CPack/cmCPackTXZGenerator.h | |
parent | 38065563b6fb0093004d0c89b5de0f82a76b5a31 (diff) | |
download | CMake-f931a18c334bd471c22f7af4e580b2433ba14a69.zip CMake-f931a18c334bd471c22f7af4e580b2433ba14a69.tar.gz CMake-f931a18c334bd471c22f7af4e580b2433ba14a69.tar.bz2 |
CPack: add generators for .7z and .tar.xz (#13072, #14519)
Diffstat (limited to 'Source/CPack/cmCPackTXZGenerator.h')
-rw-r--r-- | Source/CPack/cmCPackTXZGenerator.h | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackTXZGenerator.h b/Source/CPack/cmCPackTXZGenerator.h new file mode 100644 index 0000000..bf8152f --- /dev/null +++ b/Source/CPack/cmCPackTXZGenerator.h @@ -0,0 +1,35 @@ +/*============================================================================ + CMake - Cross Platform Makefile Generator + Copyright 2000-2009 Kitware, Inc. + + Distributed under the OSI-approved BSD License (the "License"); + see accompanying file Copyright.txt for details. + + This software is distributed WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. + See the License for more information. +============================================================================*/ + +#ifndef cmCPackTXZGenerator_h +#define cmCPackTXZGenerator_h + +#include "cmCPackArchiveGenerator.h" + +/** \class cmCPackTXZGenerator + * \brief A generator for TXZ files + * + */ +class cmCPackTXZGenerator : public cmCPackArchiveGenerator +{ +public: + cmCPackTypeMacro(cmCPackTXZGenerator, cmCPackArchiveGenerator); + /** + * Construct generator + */ + cmCPackTXZGenerator(); + virtual ~cmCPackTXZGenerator(); +protected: + virtual const char* GetOutputExtension() { return ".tar.xz"; } +}; + +#endif |