mirror of
https://github.com/jkriege2/JKQtPlotter.git
synced 2024-12-25 18:11:38 +08:00
Move similar preferences to common.pri
This commit is contained in:
parent
a94c2a0631
commit
d310801b1c
22
lib/common.pri
Normal file
22
lib/common.pri
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
|
||||||
|
!win32-msvc* {
|
||||||
|
QMAKE_CXXFLAGS += -fexceptions
|
||||||
|
} else {
|
||||||
|
QMAKE_CXXFLAGS += /EHsc
|
||||||
|
# To enable M_PI, M_E,...
|
||||||
|
DEFINES += _USE_MATH_DEFINES
|
||||||
|
# To fix error: C2338: va_start argument must not
|
||||||
|
# have reference type and must not be parenthesized
|
||||||
|
DEFINES += _CRT_NO_VA_START_VALIDATION
|
||||||
|
}
|
||||||
|
|
||||||
|
HEADERS += $$PWD/jkqtplottertools/jkqtp_imexport.h \
|
||||||
|
$$PWD/jkqtplottertools/jkqtptools.h
|
||||||
|
|
||||||
|
|
||||||
|
SOURCES += $$PWD/jkqtplottertools/jkqtptools.cpp
|
||||||
|
|
||||||
|
INCLUDEPATH += $$PWD
|
||||||
|
|
||||||
|
QT += core gui
|
||||||
|
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
@ -1,31 +1,15 @@
|
|||||||
|
|
||||||
|
include($$PWD/common.pri)
|
||||||
|
|
||||||
!win32-msvc* {
|
|
||||||
QMAKE_CXXFLAGS += -fexceptions
|
|
||||||
} else {
|
|
||||||
QMAKE_CXXFLAGS += /EHsc
|
|
||||||
# To enable M_PI, M_E,...
|
|
||||||
DEFINES += _USE_MATH_DEFINES
|
|
||||||
# To fix error: C2338: va_start argument must not
|
|
||||||
# have reference type and must not be parenthesized
|
|
||||||
DEFINES += _CRT_NO_VA_START_VALIDATION
|
|
||||||
}
|
|
||||||
|
|
||||||
HEADERS += $$PWD/jkqtfastplotter/jkqtfastplotter.h \
|
HEADERS += $$PWD/jkqtfastplotter/jkqtfastplotter.h \
|
||||||
$$PWD/jkqtplottertools/jkqtptools.h \
|
$$PWD/jkqtplottertools/jkqtphighrestimer.h
|
||||||
$$PWD/jkqtplottertools/jkqtphighrestimer.h \
|
|
||||||
$$PWD/jkqtplottertools/jkqtp_imexport.h
|
|
||||||
|
|
||||||
|
|
||||||
SOURCES += $$PWD/jkqtfastplotter/jkqtfastplotter.cpp \
|
SOURCES += $$PWD/jkqtfastplotter/jkqtfastplotter.cpp \
|
||||||
$$PWD/jkqtplottertools/jkqtptools.cpp \
|
|
||||||
$$PWD/jkqtplottertools/jkqtphighrestimer.cpp
|
$$PWD/jkqtplottertools/jkqtphighrestimer.cpp
|
||||||
|
|
||||||
|
|
||||||
RESOURCES += $$PWD/jkqtplotterressources/jkqtpbaseplotter.qrc
|
RESOURCES += $$PWD/jkqtplotterressources/jkqtpbaseplotter.qrc
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD
|
QT += opengl
|
||||||
|
|
||||||
QT += core gui opengl
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
|
||||||
|
|
||||||
|
@ -1,17 +1,13 @@
|
|||||||
HEADERS += $$PWD/jkqtmathtext/jkqtmathtext.h \
|
|
||||||
$$PWD/jkqtplottertools/jkqtptools.h \
|
include($$PWD/common.pri)
|
||||||
$$PWD/jkqtplottertools/jkqtp_imexport.h
|
|
||||||
|
|
||||||
|
|
||||||
SOURCES += $$PWD/jkqtmathtext/jkqtmathtext.cpp \
|
HEADERS += $$PWD/jkqtmathtext/jkqtmathtext.h
|
||||||
$$PWD/jkqtplottertools/jkqtptools.cpp
|
|
||||||
|
|
||||||
|
SOURCES += $$PWD/jkqtmathtext/jkqtmathtext.cpp
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD
|
|
||||||
|
|
||||||
include($$PWD/jkqtplotterressources/math_fonts/xits.pri)
|
include($$PWD/jkqtplotterressources/math_fonts/xits.pri)
|
||||||
DEFINES += AUTOLOAD_XITS_FONTS
|
DEFINES += AUTOLOAD_XITS_FONTS
|
||||||
|
|
||||||
QT += core gui
|
|
||||||
#win32:LIBS += -lgdi32
|
#win32:LIBS += -lgdi32
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
|
||||||
|
@ -1,14 +1,6 @@
|
|||||||
|
|
||||||
!win32-msvc* {
|
include($$PWD/common.pri)
|
||||||
QMAKE_CXXFLAGS += -fexceptions
|
|
||||||
} else {
|
|
||||||
QMAKE_CXXFLAGS += /EHsc
|
|
||||||
# To enable M_PI, M_E,...
|
|
||||||
DEFINES += _USE_MATH_DEFINES
|
|
||||||
# To fix error: C2338: va_start argument must not
|
|
||||||
# have reference type and must not be parenthesized
|
|
||||||
DEFINES += _CRT_NO_VA_START_VALIDATION
|
|
||||||
}
|
|
||||||
|
|
||||||
HEADERS += \
|
HEADERS += \
|
||||||
$$PWD/jkqtfastplotter/jkqtfastplotter.h \
|
$$PWD/jkqtfastplotter/jkqtfastplotter.h \
|
||||||
@ -34,13 +26,11 @@ HEADERS += \
|
|||||||
$$PWD/jkqtplottergui/jkqtpenhancedtableview.h \
|
$$PWD/jkqtplottergui/jkqtpenhancedtableview.h \
|
||||||
$$PWD/jkqtplottergui/jkqtpgraphsmodel.h \
|
$$PWD/jkqtplottergui/jkqtpgraphsmodel.h \
|
||||||
$$PWD/jkqtplottergui/jkvanishqtoolbar.h \
|
$$PWD/jkqtplottergui/jkvanishqtoolbar.h \
|
||||||
$$PWD/jkqtplottertools/jkqtp_imexport.h \
|
|
||||||
$$PWD/jkqtplottertools/jkqtpdrawingtools.h \
|
$$PWD/jkqtplottertools/jkqtpdrawingtools.h \
|
||||||
$$PWD/jkqtplottertools/jkqtpenhancedpainter.h \
|
$$PWD/jkqtplottertools/jkqtpenhancedpainter.h \
|
||||||
$$PWD/jkqtplottertools/jkqtphighrestimer.h \
|
$$PWD/jkqtplottertools/jkqtphighrestimer.h \
|
||||||
$$PWD/jkqtplottertools/jkqtpimagetools.h \
|
$$PWD/jkqtplottertools/jkqtpimagetools.h \
|
||||||
$$PWD/jkqtplottertools/jkqtpmathparser.h \
|
$$PWD/jkqtplottertools/jkqtpmathparser.h \
|
||||||
$$PWD/jkqtplottertools/jkqtptools.h \
|
|
||||||
$$PWD/jkqtplottertools/jkqttools.h
|
$$PWD/jkqtplottertools/jkqttools.h
|
||||||
|
|
||||||
|
|
||||||
@ -73,16 +63,12 @@ SOURCES += \
|
|||||||
$$PWD/jkqtplottertools/jkqtphighrestimer.cpp \
|
$$PWD/jkqtplottertools/jkqtphighrestimer.cpp \
|
||||||
$$PWD/jkqtplottertools/jkqtpimagetools.cpp \
|
$$PWD/jkqtplottertools/jkqtpimagetools.cpp \
|
||||||
$$PWD/jkqtplottertools/jkqtpmathparser.cpp \
|
$$PWD/jkqtplottertools/jkqtpmathparser.cpp \
|
||||||
$$PWD/jkqtplottertools/jkqtptools.cpp \
|
|
||||||
$$PWD/jkqtplottertools/jkqttools.cpp
|
$$PWD/jkqtplottertools/jkqttools.cpp
|
||||||
|
|
||||||
|
|
||||||
RESOURCES += $$PWD/jkqtplotterressources/jkqtpbaseplotter.qrc
|
RESOURCES += $$PWD/jkqtplotterressources/jkqtpbaseplotter.qrc
|
||||||
|
|
||||||
INCLUDEPATH += $$PWD
|
QT += xml svg opengl
|
||||||
|
|
||||||
QT += core gui xml svg opengl
|
|
||||||
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets printsupport
|
|
||||||
|
|
||||||
include($$PWD/jkqtplotterressources/math_fonts/xits.pri)
|
include($$PWD/jkqtplotterressources/math_fonts/xits.pri)
|
||||||
DEFINES += AUTOLOAD_XITS_FONTS
|
DEFINES += AUTOLOAD_XITS_FONTS
|
||||||
|
Loading…
Reference in New Issue
Block a user