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/cmCPackGeneratorFactory.cxx | |
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/cmCPackGeneratorFactory.cxx')
-rw-r--r-- | Source/CPack/cmCPackGeneratorFactory.cxx | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackGeneratorFactory.cxx b/Source/CPack/cmCPackGeneratorFactory.cxx index 788e785..da97657 100644 --- a/Source/CPack/cmCPackGeneratorFactory.cxx +++ b/Source/CPack/cmCPackGeneratorFactory.cxx @@ -14,9 +14,11 @@ #include "cmCPackGenerator.h" #include "cmCPackTGZGenerator.h" +#include "cmCPackTXZGenerator.h" #include "cmCPackTarBZip2Generator.h" #include "cmCPackTarCompressGenerator.h" #include "cmCPackZIPGenerator.h" +#include "cmCPack7zGenerator.h" #include "cmCPackSTGZGenerator.h" #include "cmCPackNSISGenerator.h" #include "cmCPackIFWGenerator.h" @@ -57,6 +59,11 @@ cmCPackGeneratorFactory::cmCPackGeneratorFactory() this->RegisterGenerator("TGZ", "Tar GZip compression", cmCPackTGZGenerator::CreateGenerator); } + if (cmCPackTXZGenerator::CanGenerate()) + { + this->RegisterGenerator("TXZ", "Tar XZ compression", + cmCPackTXZGenerator::CreateGenerator); + } if (cmCPackSTGZGenerator::CanGenerate()) { this->RegisterGenerator("STGZ", "Self extracting Tar GZip compression", @@ -92,6 +99,11 @@ cmCPackGeneratorFactory::cmCPackGeneratorFactory() this->RegisterGenerator("ZIP", "ZIP file format", cmCPackZIPGenerator::CreateGenerator); } + if (cmCPack7zGenerator::CanGenerate()) + { + this->RegisterGenerator("7Z", "7-Zip file format", + cmCPack7zGenerator::CreateGenerator); + } #ifdef _WIN32 if (cmCPackWIXGenerator::CanGenerate()) { |