summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-05-30 19:56:17 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-05-30 19:56:17 (GMT)
commita85e67d937140880d73a9ae7d7cabded366a14a6 (patch)
tree632e5239319731090706a8d1b54ab7fb8906e47c
parentcf1393218f16c356de57da8c814eb7e90a4d4c53 (diff)
downloadCMake-a85e67d937140880d73a9ae7d7cabded366a14a6.zip
CMake-a85e67d937140880d73a9ae7d7cabded366a14a6.tar.gz
CMake-a85e67d937140880d73a9ae7d7cabded366a14a6.tar.bz2
BUG: add missing file
-rw-r--r--Source/cmakemain.cxx17
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
new file mode 100644
index 0000000..8207e63
--- /dev/null
+++ b/Source/cmakemain.cxx
@@ -0,0 +1,17 @@
+#include "cmake.h"
+
+int main(int ac, char** av)
+{
+ cmake cm;
+ if(ac < 2)
+ {
+ cm.Usage(av[0]);
+ return -1;
+ }
+ std::vector<std::string> args;
+ for(int i =0; i < ac; ++i)
+ {
+ args.push_back(av[i]);
+ }
+ return cm.Generate(args);
+}