Browse Source

BUG: add missing file

Bill Hoffman 24 years ago
parent
commit
a85e67d937
1 changed files with 17 additions and 0 deletions
  1. 17 0
      Source/cmakemain.cxx

+ 17 - 0
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);
+}