diff --git a/doc/dox/whatsnew.dox b/doc/dox/whatsnew.dox
index bc2557763b..8eb0b98026 100644
--- a/doc/dox/whatsnew.dox
+++ b/doc/dox/whatsnew.dox
@@ -16,6 +16,7 @@ Changes, compared to \ref page_whatsnew_V4_0_0 "v4.0.0" include:
- General:
- CLEANUP (BREAKING) of library structure
+ - NEW: Using precompiled headers in CMake-build to speed up build times
- JKQtPlotter:
- FIXED issue described in #62: Fix custom labels draw, because giving exactly two label-strings did not display all of them, thanks to user:FalsinSoft
diff --git a/examples/advplotstyling/CMakeLists.txt b/examples/advplotstyling/CMakeLists.txt
index 660c36b8bd..5bc6306d7d 100644
--- a/examples/advplotstyling/CMakeLists.txt
+++ b/examples/advplotstyling/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
# Installation
diff --git a/examples/barchart/CMakeLists.txt b/examples/barchart/CMakeLists.txt
index 08190c192b..611db1df23 100644
--- a/examples/barchart/CMakeLists.txt
+++ b/examples/barchart/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/boxplot/CMakeLists.txt b/examples/boxplot/CMakeLists.txt
index 53bc318376..abf93d2145 100644
--- a/examples/boxplot/CMakeLists.txt
+++ b/examples/boxplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/contourplot/CMakeLists.txt b/examples/contourplot/CMakeLists.txt
index 705016fab0..3d4a1a0b0b 100644
--- a/examples/contourplot/CMakeLists.txt
+++ b/examples/contourplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/datastore/CMakeLists.txt b/examples/datastore/CMakeLists.txt
index cfc1607789..88fe77a642 100644
--- a/examples/datastore/CMakeLists.txt
+++ b/examples/datastore/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/datastore_groupedstat/CMakeLists.txt b/examples/datastore_groupedstat/CMakeLists.txt
index 6ddc4fea07..d9cb46332e 100644
--- a/examples/datastore_groupedstat/CMakeLists.txt
+++ b/examples/datastore_groupedstat/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/datastore_iterators/CMakeLists.txt b/examples/datastore_iterators/CMakeLists.txt
index cc21f72746..4084e7d29b 100644
--- a/examples/datastore_iterators/CMakeLists.txt
+++ b/examples/datastore_iterators/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/datastore_regression/CMakeLists.txt b/examples/datastore_regression/CMakeLists.txt
index caaf47f82c..05c783ab38 100644
--- a/examples/datastore_regression/CMakeLists.txt
+++ b/examples/datastore_regression/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/datastore_statistics/CMakeLists.txt b/examples/datastore_statistics/CMakeLists.txt
index 09f82472c0..59e7e1a069 100644
--- a/examples/datastore_statistics/CMakeLists.txt
+++ b/examples/datastore_statistics/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/datastore_statistics_2d/CMakeLists.txt b/examples/datastore_statistics_2d/CMakeLists.txt
index c32d99b3dc..b4c8db7b80 100644
--- a/examples/datastore_statistics_2d/CMakeLists.txt
+++ b/examples/datastore_statistics_2d/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/dateaxes/CMakeLists.txt b/examples/dateaxes/CMakeLists.txt
index ef5f7fe9ca..f30dd4b6cc 100644
--- a/examples/dateaxes/CMakeLists.txt
+++ b/examples/dateaxes/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/distributionplot/CMakeLists.txt b/examples/distributionplot/CMakeLists.txt
index 5ac482f4d5..f6a03f43a3 100644
--- a/examples/distributionplot/CMakeLists.txt
+++ b/examples/distributionplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/errorbarstyles/CMakeLists.txt b/examples/errorbarstyles/CMakeLists.txt
index dc98940c43..5174d65341 100644
--- a/examples/errorbarstyles/CMakeLists.txt
+++ b/examples/errorbarstyles/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/evalcurve/CMakeLists.txt b/examples/evalcurve/CMakeLists.txt
index eb48a6aaec..0f41734934 100644
--- a/examples/evalcurve/CMakeLists.txt
+++ b/examples/evalcurve/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/filledgraphs/CMakeLists.txt b/examples/filledgraphs/CMakeLists.txt
index b74947b0a2..79480b8dca 100644
--- a/examples/filledgraphs/CMakeLists.txt
+++ b/examples/filledgraphs/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/functionplot/CMakeLists.txt b/examples/functionplot/CMakeLists.txt
index f1dc9b94a5..bb994f2f4f 100644
--- a/examples/functionplot/CMakeLists.txt
+++ b/examples/functionplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/geo_arrows/CMakeLists.txt b/examples/geo_arrows/CMakeLists.txt
index bd21383491..ef62e0184f 100644
--- a/examples/geo_arrows/CMakeLists.txt
+++ b/examples/geo_arrows/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/geo_simple/CMakeLists.txt b/examples/geo_simple/CMakeLists.txt
index 17da519160..fd83cfc3d9 100644
--- a/examples/geo_simple/CMakeLists.txt
+++ b/examples/geo_simple/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/geometric/CMakeLists.txt b/examples/geometric/CMakeLists.txt
index 3febe2da40..10e29ae9e0 100644
--- a/examples/geometric/CMakeLists.txt
+++ b/examples/geometric/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/imageplot/CMakeLists.txt b/examples/imageplot/CMakeLists.txt
index 498a77d8a7..6176d2a615 100644
--- a/examples/imageplot/CMakeLists.txt
+++ b/examples/imageplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/imageplot_modifier/CMakeLists.txt b/examples/imageplot_modifier/CMakeLists.txt
index 2d1344ecb4..8f26711701 100644
--- a/examples/imageplot_modifier/CMakeLists.txt
+++ b/examples/imageplot_modifier/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/imageplot_nodatastore/CMakeLists.txt b/examples/imageplot_nodatastore/CMakeLists.txt
index b20f5db05a..dbbc41d5d4 100644
--- a/examples/imageplot_nodatastore/CMakeLists.txt
+++ b/examples/imageplot_nodatastore/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/imageplot_userpal/CMakeLists.txt b/examples/imageplot_userpal/CMakeLists.txt
index 157dad2743..5e64c6d746 100644
--- a/examples/imageplot_userpal/CMakeLists.txt
+++ b/examples/imageplot_userpal/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/impulsesplot/CMakeLists.txt b/examples/impulsesplot/CMakeLists.txt
index ec8b47f802..75d4c2bf6e 100644
--- a/examples/impulsesplot/CMakeLists.txt
+++ b/examples/impulsesplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/jkqtplot_test/CMakeLists.txt b/examples/jkqtplot_test/CMakeLists.txt
index 4fcb2f8922..ef894b5301 100644
--- a/examples/jkqtplot_test/CMakeLists.txt
+++ b/examples/jkqtplot_test/CMakeLists.txt
@@ -26,8 +26,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/logaxes/CMakeLists.txt b/examples/logaxes/CMakeLists.txt
index b3072f4537..b57668674c 100644
--- a/examples/logaxes/CMakeLists.txt
+++ b/examples/logaxes/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/mandelbrot/CMakeLists.txt b/examples/mandelbrot/CMakeLists.txt
index a30ff7fa33..bfbbaf597c 100644
--- a/examples/mandelbrot/CMakeLists.txt
+++ b/examples/mandelbrot/CMakeLists.txt
@@ -17,8 +17,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
target_link_libraries(${EXENAME} Threads::Threads)
diff --git a/examples/multiplot/CMakeLists.txt b/examples/multiplot/CMakeLists.txt
index 94943d0f66..13b716bb47 100644
--- a/examples/multiplot/CMakeLists.txt
+++ b/examples/multiplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/parametriccurve/CMakeLists.txt b/examples/parametriccurve/CMakeLists.txt
index a5fd2fb1e5..a18cfef35e 100644
--- a/examples/parametriccurve/CMakeLists.txt
+++ b/examples/parametriccurve/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/paramscatterplot/CMakeLists.txt b/examples/paramscatterplot/CMakeLists.txt
index 879456257f..5ab15310d2 100644
--- a/examples/paramscatterplot/CMakeLists.txt
+++ b/examples/paramscatterplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/paramscatterplot_image/CMakeLists.txt b/examples/paramscatterplot_image/CMakeLists.txt
index 8704d1f1b4..3f4b1c5927 100644
--- a/examples/paramscatterplot_image/CMakeLists.txt
+++ b/examples/paramscatterplot_image/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/parsedfunctionplot/CMakeLists.txt b/examples/parsedfunctionplot/CMakeLists.txt
index cf3a1d4b7c..d5a8e5878d 100644
--- a/examples/parsedfunctionplot/CMakeLists.txt
+++ b/examples/parsedfunctionplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/rgbimageplot/CMakeLists.txt b/examples/rgbimageplot/CMakeLists.txt
index bfe125395e..7841cb7a1e 100644
--- a/examples/rgbimageplot/CMakeLists.txt
+++ b/examples/rgbimageplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/rgbimageplot_qt/CMakeLists.txt b/examples/rgbimageplot_qt/CMakeLists.txt
index e6970699bf..0b6fa1e99b 100644
--- a/examples/rgbimageplot_qt/CMakeLists.txt
+++ b/examples/rgbimageplot_qt/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/simpletest/CMakeLists.txt b/examples/simpletest/CMakeLists.txt
index 5c9e09ea34..3d45296aea 100644
--- a/examples/simpletest/CMakeLists.txt
+++ b/examples/simpletest/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/speed/CMakeLists.txt b/examples/speed/CMakeLists.txt
index 11a933f54b..92727b07e8 100644
--- a/examples/speed/CMakeLists.txt
+++ b/examples/speed/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/stackedbars/CMakeLists.txt b/examples/stackedbars/CMakeLists.txt
index 3bd1f811dd..e390d4058d 100644
--- a/examples/stackedbars/CMakeLists.txt
+++ b/examples/stackedbars/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/stepplots/CMakeLists.txt b/examples/stepplots/CMakeLists.txt
index 69b64c4d0e..59a480ed2f 100644
--- a/examples/stepplots/CMakeLists.txt
+++ b/examples/stepplots/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/styledboxplot/CMakeLists.txt b/examples/styledboxplot/CMakeLists.txt
index 3e0d88cc60..dad298ddd9 100644
--- a/examples/styledboxplot/CMakeLists.txt
+++ b/examples/styledboxplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/styling/CMakeLists.txt b/examples/styling/CMakeLists.txt
index 7eee16d5d5..8dfeacda38 100644
--- a/examples/styling/CMakeLists.txt
+++ b/examples/styling/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/symbols_and_errors/CMakeLists.txt b/examples/symbols_and_errors/CMakeLists.txt
index 53d3a240ee..17b3d22af1 100644
--- a/examples/symbols_and_errors/CMakeLists.txt
+++ b/examples/symbols_and_errors/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/symbols_and_styles/CMakeLists.txt b/examples/symbols_and_styles/CMakeLists.txt
index 57d7419aff..c60d49e1a8 100644
--- a/examples/symbols_and_styles/CMakeLists.txt
+++ b/examples/symbols_and_styles/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/ui/CMakeLists.txt b/examples/ui/CMakeLists.txt
index 49a4e3abac..275db5ca88 100644
--- a/examples/ui/CMakeLists.txt
+++ b/examples/ui/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/user_interaction/CMakeLists.txt b/examples/user_interaction/CMakeLists.txt
index 49b5ab557b..f553987ba5 100644
--- a/examples/user_interaction/CMakeLists.txt
+++ b/examples/user_interaction/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/violinplot/CMakeLists.txt b/examples/violinplot/CMakeLists.txt
index de2bd07925..37809281c2 100644
--- a/examples/violinplot/CMakeLists.txt
+++ b/examples/violinplot/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/examples/wiggleplots/CMakeLists.txt b/examples/wiggleplots/CMakeLists.txt
index e146dd8f9d..7f782c195a 100644
--- a/examples/wiggleplots/CMakeLists.txt
+++ b/examples/wiggleplots/CMakeLists.txt
@@ -16,8 +16,12 @@ add_executable(${EXENAME} WIN32 ${SOURCES} ${HEADERS} ${RESOURCES} ${UIS})
target_include_directories(${EXENAME} PRIVATE ../../lib)
if(JKQtPlotter_BUILD_STATIC_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
elseif(JKQtPlotter_BUILD_SHARED_LIBS)
target_link_libraries(${EXENAME} JKQTPlotterSharedLib)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${EXENAME} PRIVATE ../../lib/jkqtplotter/private/jkqtplotter_precomp.h)
endif()
diff --git a/lib/jkqtcommon/CMakeLists.txt b/lib/jkqtcommon/CMakeLists.txt
index 07ec1c5981..a83e2c690d 100644
--- a/lib/jkqtcommon/CMakeLists.txt
+++ b/lib/jkqtcommon/CMakeLists.txt
@@ -119,6 +119,9 @@ function(JKQtCommon_setDefaultLibOptions TARGETNAME)
$
$
)
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${TARGETNAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/private/jkqtcommon_precomp.h)
+ target_sources(${TARGETNAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/private/jkqtcommon_precomp.h)
endfunction()
diff --git a/lib/jkqtcommon/jkqtpstringtools.h b/lib/jkqtcommon/jkqtpstringtools.h
index 25423a9e3b..34be7de724 100644
--- a/lib/jkqtcommon/jkqtpstringtools.h
+++ b/lib/jkqtcommon/jkqtpstringtools.h
@@ -24,8 +24,8 @@
#include "jkqtcommon/jkqtcommon_imexport.h"
#include
#include
-#include
-
+#include
+#include
/** \brief converts a QT::PenStyle into a string
* \ingroup jkqtptools_string
diff --git a/lib/jkqtcommon/private/jkqtcommon_precomp.h b/lib/jkqtcommon/private/jkqtcommon_precomp.h
new file mode 100644
index 0000000000..4400eb3aa6
--- /dev/null
+++ b/lib/jkqtcommon/private/jkqtcommon_precomp.h
@@ -0,0 +1,70 @@
+/* THIS IS a PRECOMILED HEADER-File for JKQTCommon-Lib
+ * it is not intended for external use!
+ */
+
+#ifndef jkqtcommon_precomp_h
+#define jkqtcommon_precomp_h
+
+/*
+ Copyright (c) 2008-2022 Jan W. Krieger ()
+
+
+
+ This software is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License (LGPL) as published by
+ the Free Software Foundation, either version 2.1 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License (LGPL) for more details.
+
+ You should have received a copy of the GNU Lesser General Public License (LGPL)
+ along with this program. If not, see .
+*/
+
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#endif // jkqtcommon_precomp_h
diff --git a/lib/jkqtmathtext/CMakeLists.txt b/lib/jkqtmathtext/CMakeLists.txt
index c98fa59447..4afdfcb962 100644
--- a/lib/jkqtmathtext/CMakeLists.txt
+++ b/lib/jkqtmathtext/CMakeLists.txt
@@ -116,6 +116,10 @@ function(JKQtMathText_setDefaultLibOptions TARGETNAME)
if(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
target_compile_definitions(${TARGETNAME} PRIVATE JKQTMATHTEXT_COMPILED_WITH_XITS)
endif(JKQtPlotter_BUILD_INCLUDE_XITS_FONTS)
+
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${TARGETNAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/private/jkqtmathtext_precomp.h)
+ target_sources(${TARGETNAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/private/jkqtmathtext_precomp.h)
endfunction()
if(JKQtPlotter_BUILD_SHARED_LIBS)
diff --git a/lib/jkqtmathtext/private/jkqtmathtext_precomp.h b/lib/jkqtmathtext/private/jkqtmathtext_precomp.h
new file mode 100644
index 0000000000..3b26298097
--- /dev/null
+++ b/lib/jkqtmathtext/private/jkqtmathtext_precomp.h
@@ -0,0 +1,94 @@
+/* THIS IS a PRECOMILED HEADER-File for JKQTCommon-Lib
+ * it is not intended for external use!
+ */
+
+#ifndef jkqtmathtext_precomp_h
+#define jkqtmathtext_precomp_h
+
+/*
+ Copyright (c) 2008-2022 Jan W. Krieger ()
+
+
+
+ This software is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License (LGPL) as published by
+ the Free Software Foundation, either version 2.1 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License (LGPL) for more details.
+
+ You should have received a copy of the GNU Lesser General Public License (LGPL)
+ along with this program. If not, see .
+*/
+
+
+
+
+#include "jkqtcommon/jkqtpcodestructuring.h"
+#include "jkqtcommon/jkqtpstringtools.h"
+#include "jkqtmathtext/jkqtmathtext.h"
+#include "jkqtmathtext/jkqtmathtexttools.h"
+#include "jkqtmathtext/nodes/jkqtmathtextnode.h"
+#include "jkqtmathtext/nodes/jkqtmathtextnodetools.h"
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+
+#include
+#include
+
+#endif // jkqtmathtext_precomp_h
diff --git a/lib/jkqtplotter/CMakeLists.txt b/lib/jkqtplotter/CMakeLists.txt
index 6b6361ae1f..559004d044 100644
--- a/lib/jkqtplotter/CMakeLists.txt
+++ b/lib/jkqtplotter/CMakeLists.txt
@@ -220,6 +220,11 @@ function(JKQtPlottter_setDefaultLibOptions TARGETNAME)
$
$
)
+
+ # precomiled headers to speed up compilation
+ target_precompile_headers(${TARGETNAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/private/jkqtplotter_precomp.h)
+ target_sources(${TARGETNAME} PRIVATE ${CMAKE_CURRENT_LIST_DIR}/private/jkqtplotter_precomp.h)
+
endfunction()
diff --git a/lib/jkqtplotter/jkqtpgraphsbase.h b/lib/jkqtplotter/jkqtpgraphsbase.h
index e30430fac7..b9a679fb32 100644
--- a/lib/jkqtplotter/jkqtpgraphsbase.h
+++ b/lib/jkqtplotter/jkqtpgraphsbase.h
@@ -18,6 +18,9 @@
*/
+#ifndef JKQTPGRAPHSBASE_H
+#define JKQTPGRAPHSBASE_H
+
#include
#include
#include
@@ -27,9 +30,6 @@
#include "jkqtplotter/jkqtplotter_imexport.h"
#include "jkqtplotter/jkqtpimagetools.h"
-#ifndef JKQTPGRAPHSBASE_H
-#define JKQTPGRAPHSBASE_H
-
// forward declarations
class JKQTPlotter;
class JKQTPDatastore;
diff --git a/lib/jkqtplotter/jkqtpkeystyle.h b/lib/jkqtplotter/jkqtpkeystyle.h
index 7776a97a34..bb98b6a928 100644
--- a/lib/jkqtplotter/jkqtpkeystyle.h
+++ b/lib/jkqtplotter/jkqtpkeystyle.h
@@ -26,6 +26,8 @@
#include
#include
#include
+#include
+#include
class JKQTBasePlotterStyle; // forward
diff --git a/lib/jkqtplotter/jkqtptools.h b/lib/jkqtplotter/jkqtptools.h
index 5d66d716ae..e52ddca302 100644
--- a/lib/jkqtplotter/jkqtptools.h
+++ b/lib/jkqtplotter/jkqtptools.h
@@ -43,6 +43,7 @@
#include
#include
#include
+#include
#include "jkqtcommon/jkqtpstringtools.h"
#include "jkqtcommon/jkqtpdebuggingtools.h"
#include "jkqtcommon/jkqtpmathtools.h"
diff --git a/lib/jkqtplotter/private/jkqtplotter_precomp.h b/lib/jkqtplotter/private/jkqtplotter_precomp.h
new file mode 100644
index 0000000000..f3c2351ab0
--- /dev/null
+++ b/lib/jkqtplotter/private/jkqtplotter_precomp.h
@@ -0,0 +1,124 @@
+/* THIS IS a PRECOMILED HEADER-File for JKQTCommon-Lib
+ * it is not intended for external use!
+ */
+
+#ifndef jkqtmathtext_precomp_h
+#define jkqtmathtext_precomp_h
+
+/*
+ Copyright (c) 2008-2022 Jan W. Krieger ()
+
+
+
+ This software is free software: you can redistribute it and/or modify
+ it under the terms of the GNU Lesser General Public License (LGPL) as published by
+ the Free Software Foundation, either version 2.1 of the License, or
+ (at your option) any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU Lesser General Public License (LGPL) for more details.
+
+ You should have received a copy of the GNU Lesser General Public License (LGPL)
+ along with this program. If not, see .
+*/
+
+#include "jkqtcommon/jkqtpbasicimagetools.h"
+#include "jkqtcommon/jkqtpcodestructuring.h"
+#include "jkqtcommon/jkqtpdebuggingtools.h"
+#include "jkqtcommon/jkqtpdrawingtools.h"
+#include "jkqtcommon/jkqtpenhancedpainter.h"
+#include "jkqtcommon/jkqtpstringtools.h"
+#include "jkqtcommon/jkqttools.h"
+#include "jkqtmathtext/jkqtmathtext.h"
+#include "jkqtmathtext/jkqtmathtexttools.h"
+#include "jkqtmathtext/nodes/jkqtmathtextnode.h"
+#include "jkqtmathtext/nodes/jkqtmathtextnodetools.h"
+#include "jkqtplotter/gui/jkvanishqtoolbar.h"
+#include "jkqtplotter/jkqtpbaseelements.h"
+#include "jkqtplotter/jkqtpbaseplotter.h"
+#include "jkqtplotter/jkqtpbaseplotterstyle.h"
+#include "jkqtplotter/jkqtpdatastorage.h"
+#include "jkqtplotter/jkqtpgraphsbase.h"
+#include "jkqtplotter/jkqtpimagetools.h"
+#include "jkqtplotter/jkqtplotterstyle.h"
+#include "jkqtplotter/jkqtptools.h"
+#include "jkqtplotter/jkqtpgraphsbaseerrors.h"
+#include "jkqtplotter/jkqtpgraphsbasestylingmixins.h"
+
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+#include
+
+#endif // jkqtmathtext_precomp_h