Update for Precompiled Headers in Qt.

--HG--
branch : feature
This commit is contained in:
dismine 2014-05-20 16:02:05 +03:00
parent cdd7fe3cb6
commit 0b16424a5e
3 changed files with 36 additions and 6 deletions

View File

@ -98,8 +98,8 @@ CONFIG(debug, debug|release){
*-g++{
QMAKE_CXXFLAGS += -isystem "/usr/include/qt5" -isystem "/usr/include/qt5/QtWidgets" \
-isystem "/usr/include/qt5/QtXml" -isystem "/usr/include/qt5/QtGui" \
-isystem "/usr/include/qt5/QtCore" -isystem "$${UI_DIR}" -isystem "$${MOC_DIR}" \
-isystem "$${RCC_DIR}" \
-isystem "/usr/include/qt5/QtCore" -isystem "/usr/include/qt5/QtXmlPatterns" \
-isystem "$${UI_DIR}" -isystem "$${MOC_DIR}" -isystem "$${RCC_DIR}" \
-O0 -Wall -Wextra -pedantic -Weffc++ -Woverloaded-virtual -Wctor-dtor-privacy \
-Wnon-virtual-dtor -Wold-style-cast -Wconversion -Winit-self -Wstack-protector \
-Wunreachable-code -Wcast-align -Wcast-qual -Wdisabled-optimization -Wfloat-equal \

View File

@ -39,12 +39,39 @@
#ifdef Q_CC_MSVC
#define _USE_MATH_DEFINES
#endif
#ifdef QT_CORE_LIB
#include <QtCore>
#include <QApplication>
#include <QtGlobal>
#include <QtXml>
#endif
#ifdef QT_GUI_LIB
#include <QtGui>
#endif
#ifdef QT_WIDGETS_LIB
#include <QtWidgets>
#endif
#ifdef QT_XML_LIB
#include <QtXml>
#endif
#ifdef QT_SVG_LIB
#include <QtSvg/QtSvg>
#endif
#ifdef QT_PRINTSUPPORT_LIB
#include <QtPrintSupport>
#endif
#ifdef QT_XMLPATTERNS_LIB
#include <QtXmlPatterns>
#endif
#ifdef QT_NETWORK_LIB
#include <QtNetwork>
#endif
#endif
#endif // STABLE_H

View File

@ -39,8 +39,11 @@
#ifdef Q_CC_MSVC
#define _USE_MATH_DEFINES
#endif
#ifdef QT_CORE_LIB
#include <QtCore>
#include <QtGlobal>
#endif
#endif
#endif // STABLE_H