[QGIS Commit] r10666 - trunk/qgis/src/plugins/grass

svn_qgis at osgeo.org svn_qgis at osgeo.org
Mon Apr 27 04:36:54 EDT 2009


Author: jef
Date: 2009-04-27 04:36:54 -0400 (Mon, 27 Apr 2009)
New Revision: 10666

Modified:
   trunk/qgis/src/plugins/grass/CMakeLists.txt
Log:
fix windows build

Modified: trunk/qgis/src/plugins/grass/CMakeLists.txt
===================================================================
--- trunk/qgis/src/plugins/grass/CMakeLists.txt	2009-04-27 08:28:35 UTC (rev 10665)
+++ trunk/qgis/src/plugins/grass/CMakeLists.txt	2009-04-27 08:36:54 UTC (rev 10666)
@@ -16,9 +16,9 @@
 ENDIF (NOT MSVC)
 
 IF (WIN32)
-  ADD_DEFINITIONS("\"-DHAVE_GETPT -DGRASS_EXPORT=__declspec(dllimport)\"")
+  ADD_DEFINITIONS(-DHAVE_GETPT "-DGRASS_EXPORT=__declspec(dllimport)")
 ELSE (WIN32)
-  ADD_DEFINITIONS("-DHAVE_POSIX_OPENPT -DGRASS_EXPORT=")
+  ADD_DEFINITIONS(-DHAVE_POSIX_OPENPT -DGRASS_EXPORT=)
 ENDIF (WIN32)
 
 ########################################################
@@ -35,30 +35,12 @@
      qgsgrassmapcalc.cpp
      qgsgrassmodule.cpp
      qgsgrassnewmapset.cpp
-     qgsgrassshell.cpp
      qgsgrassattributes.cpp
      qgsgrassregion.cpp
      qgsgrassutils.cpp
-     qtermwidget/BlockArray.cpp
-     qtermwidget/Emulation.cpp
-     qtermwidget/Filter.cpp
-     qtermwidget/History.cpp
-     qtermwidget/KeyboardTranslator.cpp
-     qtermwidget/Pty.cpp
-     qtermwidget/Screen.cpp
-     qtermwidget/ScreenWindow.cpp
-     qtermwidget/Session.cpp
-     qtermwidget/ShellCommand.cpp
-     qtermwidget/TerminalCharacterDecoder.cpp
-     qtermwidget/TerminalDisplay.cpp
-     qtermwidget/Vt102Emulation.cpp
-     qtermwidget/k3process.cpp
-     qtermwidget/k3processcontroller.cpp
-     qtermwidget/konsole_wcwidth.cpp
-     qtermwidget/kpty.cpp
-     qtermwidget/qtermwidget.cpp
 )
 
+
 SET (GRASS_PLUGIN_UIS
      qgsgrasstoolsbase.ui
      qgsgrassselectbase.ui
@@ -81,23 +63,50 @@
      qgsgrassmapcalc.h
      qgsgrassmodule.h
      qgsgrassnewmapset.h
-     qgsgrassshell.h
      qgsgrassattributes.h
      qgsgrassregion.h
      qgsgrassutils.h
      qgsgrassedittools.h
-     qtermwidget/Emulation.h
-     qtermwidget/Filter.h
-     qtermwidget/Pty.h
-     qtermwidget/ScreenWindow.h
-     qtermwidget/Session.h
-     qtermwidget/TerminalDisplay.h
-     qtermwidget/Vt102Emulation.h
-     qtermwidget/k3process.h
-     qtermwidget/k3processcontroller.h
-     qtermwidget/qtermwidget.h
 )
 
+IF(NOT WIN32)
+	SET (GRASS_PLUGIN_SRCS ${GRASS_PLUGIN_SRCS}
+     		qgsgrassshell.cpp
+		qtermwidget/BlockArray.cpp
+		qtermwidget/Emulation.cpp
+		qtermwidget/Filter.cpp
+		qtermwidget/History.cpp
+		qtermwidget/KeyboardTranslator.cpp
+		qtermwidget/Pty.cpp
+		qtermwidget/Screen.cpp
+		qtermwidget/ScreenWindow.cpp
+		qtermwidget/Session.cpp
+		qtermwidget/ShellCommand.cpp
+		qtermwidget/TerminalCharacterDecoder.cpp
+		qtermwidget/TerminalDisplay.cpp
+		qtermwidget/Vt102Emulation.cpp
+		qtermwidget/k3process.cpp
+		qtermwidget/k3processcontroller.cpp
+		qtermwidget/konsole_wcwidth.cpp
+		qtermwidget/kpty.cpp
+		qtermwidget/qtermwidget.cpp
+		)
+
+	SET (GRASS_PLUGIN_MOC_HDRS ${GRASS_PLUGIN_MOC_HDRS}
+     		qgsgrassshell.h
+		qtermwidget/Emulation.h
+		qtermwidget/Filter.h
+		qtermwidget/Pty.h
+		qtermwidget/ScreenWindow.h
+		qtermwidget/Session.h
+		qtermwidget/TerminalDisplay.h
+		qtermwidget/Vt102Emulation.h
+		qtermwidget/k3process.h
+		qtermwidget/k3processcontroller.h
+		qtermwidget/qtermwidget.h
+		)
+ENDIF(NOT WIN32)
+
 SET (GRASS_PLUGIN_RCCS  qgsgrass_plugin.qrc)
 
 
@@ -143,7 +152,6 @@
   qgis_gui
   qgisgrass
   ${QT_QTSQL_LIBRARY}
-  ${QT_QT3SUPPORT_LIBRARY} 
   ${GRASS_LIBRARIES}
 )
 



More information about the QGIS-commit mailing list