summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog/CMakeSetup.cxx
diff options
context:
space:
mode:
authorBill Hoffman <bill.hoffman@kitware.com>2008-02-19 19:06:10 (GMT)
committerBill Hoffman <bill.hoffman@kitware.com>2008-02-19 19:06:10 (GMT)
commit4a9517a688d0bff682b538a272794000de56641d (patch)
tree0014a6f291c96571b8ff2d648404c39d8b19e55c /Source/QtDialog/CMakeSetup.cxx
parenta3c2d3280234fb5883f3e2ee0a3b980fe77f9b90 (diff)
downloadCMake-4a9517a688d0bff682b538a272794000de56641d.zip
CMake-4a9517a688d0bff682b538a272794000de56641d.tar.gz
CMake-4a9517a688d0bff682b538a272794000de56641d.tar.bz2
ENH: add mac install symlink option to dialog
Diffstat (limited to 'Source/QtDialog/CMakeSetup.cxx')
-rw-r--r--Source/QtDialog/CMakeSetup.cxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/Source/QtDialog/CMakeSetup.cxx b/Source/QtDialog/CMakeSetup.cxx
index b43f728..e90ed16 100644
--- a/Source/QtDialog/CMakeSetup.cxx
+++ b/Source/QtDialog/CMakeSetup.cxx
@@ -20,6 +20,7 @@
#include <QDir>
#include <QTranslator>
#include <QLocale>
+#include "QMacInstallDialog.h"
#include "CMakeSetupDialog.h"
#include "cmDocumentation.h"
@@ -66,7 +67,17 @@ static const char * cmDocumentationOptions[][3] =
int main(int argc, char** argv)
{
QApplication app(argc, argv);
-
+
+ // if arg for install
+ for(int i =0; i < argc; i++)
+ {
+ if(strcmp(argv[i], "--mac-install") == 0)
+ {
+ QMacInstallDialog setupdialog(0);
+ setupdialog.exec();
+ return 0;
+ }
+ }
// tell the cmake library where cmake is
QDir cmExecDir(QApplication::applicationDirPath());
#if defined(Q_OS_MAC)