CMake/Source/cmakemain.cxx

18 lines
258 B
C++

#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);
}