diff options
-rw-r--r-- | Source/cmakemain.cxx | 17 |
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); +} |