diff options
author | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-02 21:52:22 (GMT) |
---|---|---|
committer | Andy Cedilnik <andy.cedilnik@kitware.com> | 2006-05-02 21:52:22 (GMT) |
commit | 6597cc48089afca7dcefe167aee17f58bd187cae (patch) | |
tree | 5b0f45afe8d1cf672073bea51dd9e6e3e144c679 /Source/CPack/cpack.cxx | |
parent | 7e788fed35074f0befde72d924621392f020f794 (diff) | |
download | CMake-6597cc48089afca7dcefe167aee17f58bd187cae.zip CMake-6597cc48089afca7dcefe167aee17f58bd187cae.tar.gz CMake-6597cc48089afca7dcefe167aee17f58bd187cae.tar.bz2 |
ENH: Add generators documentation
Diffstat (limited to 'Source/CPack/cpack.cxx')
-rw-r--r-- | Source/CPack/cpack.cxx | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/CPack/cpack.cxx b/Source/CPack/cpack.cxx index fa4afb1..8111d22 100644 --- a/Source/CPack/cpack.cxx +++ b/Source/CPack/cpack.cxx @@ -376,6 +376,23 @@ int main (int argc, char *argv[]) doc.SetUsageSection(cmDocumentationUsage); doc.SetDescriptionSection(cmDocumentationDescription); doc.SetOptionsSection(cmDocumentationOptions); + + std::vector<cmDocumentationEntry> v; + cmCPackGenerators::DescriptionsMap::const_iterator generatorIt; + for( generatorIt = generators.GetGeneratorsList().begin(); + generatorIt != generators.GetGeneratorsList().end(); + ++ generatorIt ) + { + cmDocumentationEntry e; + e.name = generatorIt->first.c_str(); + e.brief = generatorIt->second.c_str(); + e.full = ""; + v.push_back(e); + } + cmDocumentationEntry empty = {0,0,0}; + v.push_back(empty); + doc.SetGeneratorsSection(&v[0]); + doc.SetSeeAlsoList(cmDocumentationSeeAlso); #undef cout return doc.PrintRequestedDocumentation(std::cout)? 0:1; |