[Mesh] Gui: enable precompiled header
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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
|
||||
)
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
/*! \namespace MeshGui
|
||||
\brief The namespace of the Mesh Graphical interface layer library
|
||||
|
||||
@@ -20,5 +20,4 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user