mirror of
https://gitlab.kitware.com/cmake/cmake.git
synced 2026-10-07 04:02:23 +03:00
18 lines
258 B
C++
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);
|
|
}
|