Dont build as a standalone app too

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@8147 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
timlinux 2008-02-12 23:41:14 +00:00
parent 39d836b7a1
commit 9c372d93e5
2 changed files with 0 additions and 65 deletions

View File

@ -12,11 +12,6 @@ SET (GRID_SRCS
${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 @@ TARGET_LINK_LIBRARIES(gridmakerplugin
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 @@ INSTALL(TARGETS gridmakerplugin
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)

View File

@ -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;
}