using Precompiled Headers in QMake

This commit is contained in:
jkriege2 2022-07-23 13:58:01 +02:00
parent e132b5bf96
commit 105b0332ce
4 changed files with 23 additions and 16 deletions

View File

@ -1,23 +1,9 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS += jkqtplotterlib \ SUBDIRS += jkqtplotterlib_sharedlib \
jkqtplotterlib_sharedlib \
jkqtmathtextlib \
jkqtmathtextlib_sharedlib \
jkqtpcommonlib \
jkqtpcommonlib_sharedlib \
jkqtfastplotterlib \
jkqtfastplotterlib_sharedlib jkqtfastplotterlib_sharedlib
jkqtplotterlib.file = qmake/staticlib/jkqtplotterlib/jkqtplotterlib.pro
jkqtplotterlib_sharedlib.file = qmake/sharedlib/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 jkqtfastplotterlib_sharedlib.file = qmake/sharedlib/jkqtfastplotterlib/jkqtfastplotterlib.pro

8
lib/jkqtplotter_pch.pri Normal file
View File

@ -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
}

View File

@ -20,3 +20,9 @@ include(../../../lib/jkqtplotter.pri)
include(../../../lib/jkqtpcommon.pri) include(../../../lib/jkqtpcommon.pri)
include(../../../lib/jkqtmathtext.pri) include(../../../lib/jkqtmathtext.pri)
include(../../../lib/jkqtfastplotter.pri) include(../../../lib/jkqtfastplotter.pri)
include(../../../lib/jkqtplotter_pch.pri)
precompile_header:!isEmpty(PRECOMPILED_HEADER) {
DEFINES += USING_PCH
}

View File

@ -16,3 +16,10 @@ include(../../../lib/jkqtfastplotter.pri)
win32-msvc*: DEFINES += _USE_MATH_DEFINES win32-msvc*: DEFINES += _USE_MATH_DEFINES
win32-msvc*: DEFINES += NOMINMAX win32-msvc*: DEFINES += NOMINMAX
include(../../../lib/jkqtplotter_pch.pri)
precompile_header:!isEmpty(PRECOMPILED_HEADER) {
DEFINES += USING_PCH
}