Fix build with CMake & gcc 4.1.2 on my system (treating #include <QtGui> as including directory)
authorunc0rr
Wed, 02 May 2007 15:21:34 +0000
changeset 502 bc178daca088
parent 501 35b8c6c4e7e1
child 503 2cfdc4bfc2be
Fix build with CMake & gcc 4.1.2 on my system (treating #include <QtGui> as including directory)
QTfrontend/CMakeLists.txt
QTfrontend/hwform.cpp
--- a/QTfrontend/CMakeLists.txt	Mon Mar 19 21:28:16 2007 +0000
+++ b/QTfrontend/CMakeLists.txt	Wed May 02 15:21:34 2007 +0000
@@ -1,5 +1,7 @@
 set(QT_MIN_VERSION "4.2.0")
 
+set(QT_USE_QTCORE TRUE)
+set(QT_USE_QTGUI TRUE)
 set(QT_USE_QTNETWORK TRUE)
 set(QT_USE_QTSVG TRUE)
 set(QT_USE_QTXML TRUE)
--- a/QTfrontend/hwform.cpp	Mon Mar 19 21:28:16 2007 +0000
+++ b/QTfrontend/hwform.cpp	Wed May 02 15:21:34 2007 +0000
@@ -16,7 +16,6 @@
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <QtGui>
 #include <QStringList>
 #include <QProcess>
 #include <QDir>
@@ -26,6 +25,11 @@
 #include <QFile>
 #include <QTextStream>
 #include <QMessageBox>
+#include <QPushButton>
+#include <QListWidget>
+#include <QStackedLayout>
+#include <QLineEdit>
+#include <QLabel>
 
 #include "hwform.h"
 #include "game.h"