summaryrefslogtreecommitdiffstats
path: root/Source/cmakemain.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2001-11-30 21:48:52 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2001-11-30 21:48:52 (GMT)
commit0d3eefb1f1602bb39319ff2173b94cd1874e1c29 (patch)
treeb01e9c24ca72e4e88bd80ec35894ed8db9f58c79 /Source/cmakemain.cxx
parente9d0ad180fa73dd73d1ccf1e45cfa67d03e0d765 (diff)
downloadCMake-0d3eefb1f1602bb39319ff2173b94cd1874e1c29.zip
CMake-0d3eefb1f1602bb39319ff2173b94cd1874e1c29.tar.gz
CMake-0d3eefb1f1602bb39319ff2173b94cd1874e1c29.tar.bz2
new borland generator moved into place
Diffstat (limited to 'Source/cmakemain.cxx')
-rw-r--r--Source/cmakemain.cxx24
1 files changed, 20 insertions, 4 deletions
diff --git a/Source/cmakemain.cxx b/Source/cmakemain.cxx
index 3df3d64..ad8cb68 100644
--- a/Source/cmakemain.cxx
+++ b/Source/cmakemain.cxx
@@ -1,15 +1,31 @@
+#include "cmakewizard.h"
#include "cmake.h"
#include "cmMakefileGenerator.h"
int main(int ac, char** av)
{
- cmake cm;
+ bool wiz = false;
std::vector<std::string> args;
for(int i =0; i < ac; ++i)
{
- args.push_back(av[i]);
+ if(strcmp(av[i], "-i") == 0)
+ {
+ wiz = true;
+ }
+ else
+ {
+ args.push_back(av[i]);
+ }
}
- int ret = cm.Generate(args);
+ if(!wiz)
+ {
+ cmake cm;
+ int ret = cm.Generate(args);
+ cmMakefileGenerator::UnRegisterGenerators();
+ return ret;
+ }
+ cmakewizard wizard;
+ wizard.RunWizard(args);
cmMakefileGenerator::UnRegisterGenerators();
- return ret;
+ return 0;
}