From b4bd8d9f6c2bde1e6b1d342671cee4c01d043c20 Mon Sep 17 00:00:00 2001 From: Uwe Date: Sat, 10 Dec 2022 00:51:34 +0100 Subject: [PATCH] [Mesh] Gui: enable precompiled header --- src/Gui/InventorAll.h | 2 ++ src/Mod/Mesh/Gui/CMakeLists.txt | 6 ++++++ src/Mod/Mesh/Gui/Doxygen.cpp | 1 + src/Mod/Mesh/Gui/PreCompiled.cpp | 1 - src/Mod/Mesh/Gui/PreCompiled.h | 20 +------------------- 5 files changed, 10 insertions(+), 20 deletions(-) diff --git a/src/Gui/InventorAll.h b/src/Gui/InventorAll.h index b0310a850d..4e13c0b63f 100644 --- a/src/Gui/InventorAll.h +++ b/src/Gui/InventorAll.h @@ -66,6 +66,7 @@ #include #include #include +#include #include #include #include @@ -90,6 +91,7 @@ #include #include #include +#include #include #include #include diff --git a/src/Mod/Mesh/Gui/CMakeLists.txt b/src/Mod/Mesh/Gui/CMakeLists.txt index 372a2f8ac4..50ad208c61 100644 --- a/src/Mod/Mesh/Gui/CMakeLists.txt +++ b/src/Mod/Mesh/Gui/CMakeLists.txt @@ -144,6 +144,12 @@ SET(MeshGui_SRCS Workbench.h ) +if(FREECAD_USE_PCH) + add_definitions(-D_PreComp_) + GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${MeshGui_SRCS}) + ADD_MSVC_PRECOMPILED_HEADER(MeshGui PreCompiled.h PreCompiled.cpp PCH_SRCS) +endif(FREECAD_USE_PCH) + SET(MeshGuiIcon_SVG Resources/icons/MeshWorkbench.svg ) diff --git a/src/Mod/Mesh/Gui/Doxygen.cpp b/src/Mod/Mesh/Gui/Doxygen.cpp index 3b0465cba4..8d9d4f7f0c 100644 --- a/src/Mod/Mesh/Gui/Doxygen.cpp +++ b/src/Mod/Mesh/Gui/Doxygen.cpp @@ -20,6 +20,7 @@ * * ***************************************************************************/ +#include "PreCompiled.h" /*! \namespace MeshGui \brief The namespace of the Mesh Graphical interface layer library diff --git a/src/Mod/Mesh/Gui/PreCompiled.cpp b/src/Mod/Mesh/Gui/PreCompiled.cpp index ccf2b83403..a634963fef 100644 --- a/src/Mod/Mesh/Gui/PreCompiled.cpp +++ b/src/Mod/Mesh/Gui/PreCompiled.cpp @@ -20,5 +20,4 @@ * * ***************************************************************************/ - #include "PreCompiled.h" diff --git a/src/Mod/Mesh/Gui/PreCompiled.h b/src/Mod/Mesh/Gui/PreCompiled.h index 1c782f3a10..fd81e3ec9e 100644 --- a/src/Mod/Mesh/Gui/PreCompiled.h +++ b/src/Mod/Mesh/Gui/PreCompiled.h @@ -20,7 +20,6 @@ * * ***************************************************************************/ - #ifndef MESHGUI_PRECOMPILED_H #define MESHGUI_PRECOMPILED_H @@ -42,29 +41,18 @@ #ifdef FC_USE_GTS # include #endif + // standard -#include -#include #include // STL #include -#include -#include -#include #include #include -#include -#include #include -#include #include #include -#ifdef FC_OS_WIN32 -# include -#endif - // Qt Toolkit #ifndef __QtAll__ # include @@ -73,14 +61,8 @@ // Inventor #ifndef __InventorAll__ # include -# include #endif -#elif defined(FC_OS_WIN32) -#ifndef NOMINMAX -#define NOMINMAX -#endif -#include #endif //_PreComp_ #endif // MESHGUI_PRECOMPILED_H