diff options
author | Konstantin Podsvirov <konstantin@podsvirov.pro> | 2016-09-19 15:48:27 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-09-19 17:17:59 (GMT) |
commit | b807cd9b54e4a9324ddd64281254b6fe80be5b24 (patch) | |
tree | 683a118372760a9a85a808151b093e8aa0cf9e21 /Source/CPack/IFW/cmCPackIFWGenerator.cxx | |
parent | 5c87b92b1b7888ee032e3c2a75f35f1f94f4dfa5 (diff) | |
download | CMake-b807cd9b54e4a9324ddd64281254b6fe80be5b24.zip CMake-b807cd9b54e4a9324ddd64281254b6fe80be5b24.tar.gz CMake-b807cd9b54e4a9324ddd64281254b6fe80be5b24.tar.bz2 |
CPackIFW: Add 'cpack_ifw_add_package_resources' command
Diffstat (limited to 'Source/CPack/IFW/cmCPackIFWGenerator.cxx')
-rw-r--r-- | Source/CPack/IFW/cmCPackIFWGenerator.cxx | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Source/CPack/IFW/cmCPackIFWGenerator.cxx b/Source/CPack/IFW/cmCPackIFWGenerator.cxx index a6f1585..fa7e0aa 100644 --- a/Source/CPack/IFW/cmCPackIFWGenerator.cxx +++ b/Source/CPack/IFW/cmCPackIFWGenerator.cxx @@ -130,6 +130,19 @@ int cmCPackIFWGenerator::PackageFiles() { std::string ifwCmd = BinCreator; ifwCmd += " -c " + this->toplevel + "/config/config.xml"; + + if (!Installer.Resources.empty()) { + ifwCmd += " -r "; + std::vector<std::string>::iterator it = Installer.Resources.begin(); + std::string path = this->toplevel + "/resources/"; + ifwCmd += path + *it; + ++it; + while (it != Installer.Resources.end()) { + ifwCmd += "," + path + *it; + ++it; + } + } + ifwCmd += " -p " + this->toplevel + "/packages"; if (!PkgsDirsVector.empty()) { |