Update for Precompiled Headers in Qt.
--HG-- branch : feature
This commit is contained in:
parent
cdd7fe3cb6
commit
0b16424a5e
|
@ -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 \
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user