CMake/Source/cmakemain.cxx

18 lines
258 B
C++
Raw Normal View History

2001-05-30 23:56:17 +04:00
#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);
}