diff --git a/JKQtPlotterAppveyorBuild.pro b/JKQtPlotterAppveyorBuild.pro index 40cef824a6..7076ae739c 100644 --- a/JKQtPlotterAppveyorBuild.pro +++ b/JKQtPlotterAppveyorBuild.pro @@ -1,23 +1,9 @@ TEMPLATE = subdirs -SUBDIRS += jkqtplotterlib \ - jkqtplotterlib_sharedlib \ - jkqtmathtextlib \ - jkqtmathtextlib_sharedlib \ - jkqtpcommonlib \ - jkqtpcommonlib_sharedlib \ - jkqtfastplotterlib \ +SUBDIRS += jkqtplotterlib_sharedlib \ jkqtfastplotterlib_sharedlib -jkqtplotterlib.file = qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro jkqtplotterlib_sharedlib.file = qmake/sharedlib/jkqtplotterlib/jkqtplotterlib.pro -jkqtmathtextlib.file = qmake/staticlib/jkqtmathtextlib/jkqtmathtextlib.pro -jkqtmathtextlib_sharedlib.file = qmake/sharedlib/jkqtmathtextlib/jkqtmathtextlib.pro - -jkqtpcommonlib.file = qmake/staticlib/jkqtpcommonlib/jkqtpcommonlib.pro -jkqtpcommonlib_sharedlib.file = qmake/sharedlib/jkqtpcommonlib/jkqtpcommonlib.pro - -jkqtfastplotterlib.file = qmake/staticlib/jkqtfastplotterlib/jkqtfastplotterlib.pro jkqtfastplotterlib_sharedlib.file = qmake/sharedlib/jkqtfastplotterlib/jkqtfastplotterlib.pro diff --git a/lib/jkqtplotter_pch.pri b/lib/jkqtplotter_pch.pri new file mode 100644 index 0000000000..74d91bff5b --- /dev/null +++ b/lib/jkqtplotter_pch.pri @@ -0,0 +1,8 @@ +isEmpty(JKQTP_PLOTTER_PRECOMP_PRI_INCLUDED) { + JKQTP_PLOTTER_PRECOMP_PRI_INCLUDED = 1 + + INCLUDEPATH += $PWD + + + PRECOMPILED_HEADER = $$PWD/jkqtplotter/private/jkqtplotter_precomp.h +} diff --git a/qmake/sharedlib/jkqtplotterlib/jkqtplotterlib.pro b/qmake/sharedlib/jkqtplotterlib/jkqtplotterlib.pro index f91a701bac..a16bce8816 100644 --- a/qmake/sharedlib/jkqtplotterlib/jkqtplotterlib.pro +++ b/qmake/sharedlib/jkqtplotterlib/jkqtplotterlib.pro @@ -19,4 +19,10 @@ win32-msvc*: DEFINES += NOMINMAX include(../../../lib/jkqtplotter.pri) include(../../../lib/jkqtpcommon.pri) include(../../../lib/jkqtmathtext.pri) -include(../../../lib/jkqtfastplotter.pri) \ No newline at end of file +include(../../../lib/jkqtfastplotter.pri) + + +include(../../../lib/jkqtplotter_pch.pri) +precompile_header:!isEmpty(PRECOMPILED_HEADER) { + DEFINES += USING_PCH +} diff --git a/qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro b/qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro index 253c442d84..3bfd2e05ca 100644 --- a/qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro +++ b/qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro @@ -16,3 +16,10 @@ include(../../../lib/jkqtfastplotter.pri) win32-msvc*: DEFINES += _USE_MATH_DEFINES win32-msvc*: DEFINES += NOMINMAX + + + +include(../../../lib/jkqtplotter_pch.pri) +precompile_header:!isEmpty(PRECOMPILED_HEADER) { + DEFINES += USING_PCH +}