[QGIS Commit] r8147 - trunk/qgis/src/plugins/grid_maker
svn_qgis at osgeo.org
svn_qgis at osgeo.org
Tue Feb 12 18:41:14 EST 2008
Author: timlinux
Date: 2008-02-12 18:41:14 -0500 (Tue, 12 Feb 2008)
New Revision: 8147
Removed:
trunk/qgis/src/plugins/grid_maker/main.cpp
Modified:
trunk/qgis/src/plugins/grid_maker/CMakeLists.txt
Log:
Dont build as a standalone app too
Modified: trunk/qgis/src/plugins/grid_maker/CMakeLists.txt
===================================================================
--- trunk/qgis/src/plugins/grid_maker/CMakeLists.txt 2008-02-12 21:10:07 UTC (rev 8146)
+++ trunk/qgis/src/plugins/grid_maker/CMakeLists.txt 2008-02-12 23:41:14 UTC (rev 8147)
@@ -12,11 +12,6 @@
${GRID_COMMON_SRCS}
)
-SET (GRID_BINARY_SRCS
- main.cpp
- ${GRID_COMMON_SRCS}
-)
-
SET (GRID_UIS pluginguibase.ui)
SET (GRID_COMMON_MOC_HDRS plugingui.h)
@@ -54,18 +49,6 @@
qgis_gui
)
-IF (PLUGINS_ALSO_BINARIES)
-
- ADD_EXECUTABLE (gridmaker ${GRID_BINARY_SRCS} ${GRID_COMMON_MOC_SRCS} ${GRID_RCC_SRCS})
-
- TARGET_LINK_LIBRARIES(gridmaker
- ${QT_LIBRARIES}
- qgis_core
- qgis_gui
- )
-
-ENDIF (PLUGINS_ALSO_BINARIES)
-
########################################################
# Install
@@ -73,6 +56,3 @@
RUNTIME DESTINATION ${QGIS_PLUGIN_DIR}
LIBRARY DESTINATION ${QGIS_PLUGIN_DIR})
-IF (PLUGINS_ALSO_BINARIES)
- INSTALL(TARGETS gridmaker RUNTIME DESTINATION ${QGIS_BIN_DIR})
-ENDIF (PLUGINS_ALSO_BINARIES)
Deleted: trunk/qgis/src/plugins/grid_maker/main.cpp
===================================================================
--- trunk/qgis/src/plugins/grid_maker/main.cpp 2008-02-12 21:10:07 UTC (rev 8146)
+++ trunk/qgis/src/plugins/grid_maker/main.cpp 2008-02-12 23:41:14 UTC (rev 8147)
@@ -1,45 +0,0 @@
-/***************************************************************************
- main.cpp
- --------------------------------------
- Date : Sun Sep 16 12:06:57 AKDT 2007
- Copyright : (C) 2007 by Gary E. Sherman
- Email : sherman at mrcc dot com
- ***************************************************************************
- * *
- * This program is free software; you can redistribute it and/or modify *
- * it under the terms of the GNU General Public License as published by *
- * the Free Software Foundation; either version 2 of the License, or *
- * (at your option) any later version. *
- * *
- ***************************************************************************/
-#ifdef HAVE_CONFIG_H
-#include <qgsconfig.h>
-#endif
-
-#include <cstdio>
-#include <cstdlib>
-#include "plugingui.h"
-
-#include <QApplication>
-#include <QTranslator>
-#include <QString>
-#include <QTextCodec>
-#include "qgsapplication.h"
-
-int main(int argc, char *argv[])
-{
- QApplication a(argc, argv);
-
- /* Load translationfile */
- QTranslator tor(0);
- tor.load(QString("qgis_") + QTextCodec::locale(), QgsApplication::pkgDataPath() + "/i18n");
- a.installTranslator(&tor);
-
- QgsGridMakerPluginGui *myPluginGui=new QgsGridMakerPluginGui();
- a.setMainWidget(myPluginGui);
- myPluginGui->show();
-
- return a.exec();
-
- return EXIT_SUCCESS;
-}
More information about the QGIS-commit
mailing list