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/cmCPack7zGenerator.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/cmCPack7zGenerator.h')
-rw-r--r-- | Source/CPack/cmCPack7zGenerator.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/Source/CPack/cmCPack7zGenerator.h b/Source/CPack/cmCPack7zGenerator.h new file mode 100644 index 0000000..f5a323f --- /dev/null +++ b/Source/CPack/cmCPack7zGenerator.h @@ -0,0 +1,36 @@ +/*============================================================================ + 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 cmCPack7zGenerator_h +#define cmCPack7zGenerator_h + +#include "cmCPackArchiveGenerator.h" + +/** \class cmCPack7zGenerator + * \brief A generator for 7z files + */ +class cmCPack7zGenerator : public cmCPackArchiveGenerator +{ +public: + cmCPackTypeMacro(cmCPack7zGenerator, cmCPackArchiveGenerator); + + /** + * Construct generator + */ + cmCPack7zGenerator(); + virtual ~cmCPack7zGenerator(); + +protected: + virtual const char* GetOutputExtension() { return ".7z"; } +}; + +#endif |