[Mesh] Gui: enable precompiled header

This commit is contained in:
Uwe
2022-12-10 00:51:34 +01:00
parent 7acc1eca60
commit b4bd8d9f6c
5 changed files with 10 additions and 20 deletions

View File

@@ -66,6 +66,7 @@
#include <Inventor/actions/SoSearchAction.h>
#include <Inventor/actions/SoToVRML2Action.h>
#include <Inventor/actions/SoWriteAction.h>
#include <Inventor/annex/ForeignFiles/SoSTLFileKit.h>
#include <Inventor/annex/HardCopy/SoVectorizeAction.h>
#include <Inventor/annex/HardCopy/SoVectorizePSAction.h>
#include <Inventor/annex/HardCopy/SoVectorOutput.h>
@@ -90,6 +91,7 @@
#include <Inventor/elements/SoFontSizeElement.h>
#include <Inventor/elements/SoGLCacheContextElement.h>
#include <Inventor/elements/SoGLCoordinateElement.h>
#include <Inventor/elements/SoGLLazyElement.h>
#include <Inventor/elements/SoLazyElement.h>
#include <Inventor/elements/SoLightModelElement.h>
#include <Inventor/elements/SoLineWidthElement.h>

View File

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

View File

@@ -20,6 +20,7 @@
* *
***************************************************************************/
#include "PreCompiled.h"
/*! \namespace MeshGui
\brief The namespace of the Mesh Graphical interface layer library

View File

@@ -20,5 +20,4 @@
* *
***************************************************************************/
#include "PreCompiled.h"

View File

@@ -20,7 +20,6 @@
* *
***************************************************************************/
#ifndef MESHGUI_PRECOMPILED_H
#define MESHGUI_PRECOMPILED_H
@@ -42,29 +41,18 @@
#ifdef FC_USE_GTS
# include <gts.h>
#endif
// standard
#include <cstdio>
#include <cassert>
#include <ios>
// STL
#include <algorithm>
#include <bitset>
#include <iostream>
#include <fstream>
#include <list>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
#ifdef FC_OS_WIN32
# include <windows.h>
#endif
// Qt Toolkit
#ifndef __QtAll__
# include <Gui/QtAll.h>
@@ -73,14 +61,8 @@
// Inventor
#ifndef __InventorAll__
# include <Gui/InventorAll.h>
# include <Inventor/annex/ForeignFiles/SoSTLFileKit.h>
#endif
#elif defined(FC_OS_WIN32)
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#endif //_PreComp_
#endif // MESHGUI_PRECOMPILED_H