some bugfixes in build scripts/QMake projects

This commit is contained in:
jkriege2 2019-05-11 16:09:44 +02:00
parent 20352285ca
commit 86ba47db9a
3 changed files with 24 additions and 2 deletions

View File

@ -76,7 +76,7 @@ addSimpleTest(geometric)
addSimpleTest(ui)
addSimpleTest(boxplot)
addSimpleTest(advancedlineandfillstyling)
#addSimpleTest(imageplot_nodatastore)
addSimpleTest(imageplot_nodatastore)
#addSimpleTest(rgbimageplot_opencv)
#addSimpleTest(imageplot_opencv)

View File

@ -21,7 +21,17 @@ CONFIG (debug, debug|release) {
}
message("LIBS = $$LIBS")
!win32-msvc* {
QMAKE_CXXFLAGS += -fexceptions
} else {
QMAKE_CXXFLAGS += /EHsc
# /std:c++14
# 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
}

View File

@ -1,6 +1,18 @@
# source code for this simple demo
SOURCES = test_distributionplot.cpp
!win32-msvc* {
QMAKE_CXXFLAGS += -fexceptions
} else {
QMAKE_CXXFLAGS += /EHsc
# /std:c++14
# 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
}
# configure Qt
CONFIG += link_prl qt
QT += core gui xml svg