diff options
author | Ken Martin <ken.martin@kitware.com> | 2006-12-07 14:45:32 (GMT) |
---|---|---|
committer | Ken Martin <ken.martin@kitware.com> | 2006-12-07 14:45:32 (GMT) |
commit | 27379d7b081be852c2b290a98db548cffffbff04 (patch) | |
tree | fcc9e19282bdfb71bf4bf9b1f8fcea1401c2fbd5 /Source/cmakemain.cxx | |
parent | 833548f53a2ed799bb0df23fd7d973c30b423d1b (diff) | |
download | CMake-27379d7b081be852c2b290a98db548cffffbff04.zip CMake-27379d7b081be852c2b290a98db548cffffbff04.tar.gz CMake-27379d7b081be852c2b290a98db548cffffbff04.tar.bz2 |
ENH: make properties a bit more formal with documentation and chaining
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r-- | Source/cmakemain.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx index f183ae2..d636559 100644 --- a/Source/cmakemain.cxx +++ b/Source/cmakemain.cxx @@ -18,6 +18,7 @@ #include "cmCacheManager.h" #include "cmListFileCache.h" #include "cmakewizard.h" +#include "cmSourceFile.h" #ifdef CMAKE_BUILD_WITH_CMAKE #include "cmDynamicLoader.h" @@ -100,6 +101,13 @@ static const cmDocumentationEntry cmDocumentationOptions[] = "The list contains all modules for which help may be obtained by using " "the --help-module argument followed by a module name. If a file is " "specified, the help is written into it."}, + {"--help-property prop [file]", + "Print help for a single property and exit.", + "Full documentation specific to the given module is displayed."}, + {"--help-property-list [file]", "List available properties and exit.", + "The list contains all properties for which help may be obtained by using " + "the --help-property argument followed by a property name. If a file is " + "specified, the help is written into it."}, {0,0,0} }; @@ -157,8 +165,10 @@ int do_cmake(int ac, char** av) hcm.AddCMakePaths(av[0]); doc.SetCMakeRoot(hcm.GetCacheDefinition("CMAKE_ROOT")); std::vector<cmDocumentationEntry> commands; + std::vector<cmDocumentationEntry> properties; std::vector<cmDocumentationEntry> generators; hcm.GetCommandDocumentation(commands); + hcm.GetPropertiesDocumentation(properties); hcm.GetGeneratorDocumentation(generators); doc.SetName("cmake"); doc.SetNameSection(cmDocumentationName); @@ -167,6 +177,7 @@ int do_cmake(int ac, char** av) doc.SetGeneratorsSection(&generators[0]); doc.SetOptionsSection(cmDocumentationOptions); doc.SetCommandsSection(&commands[0]); + doc.SetPropertiesSection(&properties[0]); doc.SetSeeAlsoList(cmDocumentationSeeAlso); int result = doc.PrintRequestedDocumentation(std::cout)? 0:1; |