diff options
author | Brad King <brad.king@kitware.com> | 2003-02-14 15:53:37 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2003-02-14 15:53:37 (GMT) |
commit | 1f55680332c133fddce4a0b85cfb7ee1a20cff75 (patch) | |
tree | 7cc80032918bf19095fe31fb7d52b29e6c1d64e8 /Source/CursesDialog | |
parent | d9a74e1b1e18156be224697383b571ad9af4336c (diff) | |
download | CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.zip CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.tar.gz CMake-1f55680332c133fddce4a0b85cfb7ee1a20cff75.tar.bz2 |
ENH: Added cmDocumentation class to generate various forms of documentation. Each executable will be able to generate its own documentation.
Diffstat (limited to 'Source/CursesDialog')
-rw-r--r-- | Source/CursesDialog/ccmake.cxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx index 8cd2ccb..47ae7ee 100644 --- a/Source/CursesDialog/ccmake.cxx +++ b/Source/CursesDialog/ccmake.cxx @@ -17,6 +17,7 @@ #include "../cmCacheManager.h" #include "../cmSystemTools.h" #include "../cmake.h" +#include "../cmDocumentation.h" #include <signal.h> #include <sys/ioctl.h> @@ -26,6 +27,30 @@ #include <curses.h> #include <form.h> +//---------------------------------------------------------------------------- +static const cmDocumentationEntry cmDocumentationName[] = +{ + {"ccmake", + "- Curses Interface for CMake.", 0}, + {0,0,0} +}; + +//---------------------------------------------------------------------------- +static const cmDocumentationEntry cmDocumentationUsage[] = +{ + {0, + "ccmake <path-to-source>", 0}, + {0,0,0} +}; + +//---------------------------------------------------------------------------- +static const cmDocumentationEntry cmDocumentationDescription[] = +{ + {0, + "CMake reads ... ", 0}, + {0,0,0} +}; + cmCursesForm* cmCursesForm::CurrentForm=0; extern "C" @@ -60,6 +85,16 @@ void CMakeErrorHandler(const char* message, const char* title, bool&, void* clie int main(int argc, char** argv) { + cmDocumentation doc; + if(cmDocumentation::Type ht = doc.CheckOptions(argc, argv)) + { + doc.SetName(cmDocumentationName); + doc.SetUsage(cmDocumentationUsage); + doc.SetDescription(cmDocumentationDescription); + doc.Print(ht, std::cout); + return 0; + } + bool debug = false; unsigned int i; int j; |