diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx new file mode 100644 index 000000000..8207e637e --- /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 args; + for(int i =0; i < ac; ++i) + { + args.push_back(av[i]); + } + return cm.Generate(args); +}