Fem: use CMake to generate precompiled headers on all platforms
"Professional CMake" book suggest the following: "Targets should build successfully with or without compiler support for precompiled headers. It should be considered an optimization, not a requirement. In particular, do not explicitly include a precompile header (e.g. stdafx.h) in the source code, let CMake force-include an automatically generated precompile header on the compiler command line instead. This is more portable across the major compilers and is likely to be easier to maintain. It will also avoid warnings being generated from certain code checking tools like iwyu (include what you use)." Therefore, removed the "#include <PreCompiled.h>" from sources, also there is no need for the "#ifdef _PreComp_" anymore
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <SMESH_Version.h>
|
||||
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -90,7 +90,6 @@ SET(Mod_SRCS
|
||||
AppFemPy.cpp
|
||||
FemTools.cpp
|
||||
FemTools.h
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
)
|
||||
SOURCE_GROUP("Module" FILES ${Mod_SRCS})
|
||||
@@ -182,14 +181,14 @@ SET(Fem_SRCS
|
||||
${Python_SRCS}
|
||||
)
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" Fem_CPP_SRCS ${Fem_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(Fem PreCompiled.h PreCompiled.cpp Fem_CPP_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
add_library(Fem SHARED ${Fem_SRCS})
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
target_precompile_headers(Fem PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:"${CMAKE_CURRENT_LIST_DIR}/PreCompiled.h">
|
||||
)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
target_include_directories(
|
||||
Fem
|
||||
PRIVATE
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
|
||||
@@ -21,10 +21,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
|
||||
#include <Adaptor3d_IsoCurve.hxx>
|
||||
#include <BRepAdaptor_CompCurve.hxx>
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
@@ -55,7 +53,6 @@
|
||||
#include <Adaptor3d_HSurface.hxx>
|
||||
#include <BRepAdaptor_HSurface.hxx>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
@@ -21,13 +21,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Mod/Part/App/PartFeature.h>
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintContact.h"
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintDisplacement.h"
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintFixed.h"
|
||||
|
||||
|
||||
@@ -21,11 +21,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Precision.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Console.h>
|
||||
|
||||
|
||||
@@ -21,11 +21,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Precision.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include "FemConstraintForce.h"
|
||||
|
||||
|
||||
@@ -21,11 +21,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Precision.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include "FemConstraintGear.h"
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintHeatflux.h"
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintInitialTemperature.h"
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintPlaneRotation.h"
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintPressure.h"
|
||||
|
||||
|
||||
@@ -21,11 +21,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Precision.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include "FemConstraintPulley.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintRigidBody.h"
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintSpring.h"
|
||||
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemConstraintTemperature.h"
|
||||
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Tools.h>
|
||||
#include <Mod/Part/App/PartFeature.h>
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#include <cstdlib>
|
||||
#include <memory>
|
||||
@@ -58,7 +55,6 @@
|
||||
|
||||
#include <boost/assign/list_of.hpp>
|
||||
#include <boost/tokenizer.hpp> //to simplify parsing input files we use the boost lib
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <Base/Console.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
#include <App/GeoFeaturePy.h>
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/PlacementPy.h>
|
||||
#include <Base/Reader.h>
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#include <SMDSAbs_ElementType.hxx>
|
||||
#include <SMDS_MeshElement.hxx>
|
||||
@@ -35,7 +33,7 @@
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <algorithm>
|
||||
#include <stdexcept>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Mod/Fem/App/FemMesh.h"
|
||||
#include <Base/PlacementPy.h>
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#include <SMESH_Version.h>
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#include <SMESHDS_Mesh.hxx>
|
||||
#include <SMESH_Mesh.hxx>
|
||||
@@ -32,7 +30,6 @@
|
||||
#include <NETGENPlugin_Hypothesis.hxx>
|
||||
#include <NETGENPlugin_Mesher.hxx>
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include <Base/Console.h>
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <SMESH_Mesh.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
#include <App/GeoFeaturePy.h>
|
||||
|
||||
@@ -20,11 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#endif
|
||||
|
||||
#include "FemPostBranchFilter.h"
|
||||
#include "FemPostBranchFilterPy.h"
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#endif
|
||||
|
||||
// clang-format off
|
||||
#include "FemPostBranchFilter.h"
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#include <vtkDoubleArray.h>
|
||||
#include <vtkPointData.h>
|
||||
@@ -30,7 +27,6 @@
|
||||
#include <vtkAlgorithmOutput.h>
|
||||
#include <vtkUnstructuredGrid.h>
|
||||
#include <vtkInformation.h>
|
||||
#endif
|
||||
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#endif
|
||||
|
||||
#include <Base/FileInfo.h>
|
||||
#include <Base/UnitPy.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemPostFunction.h"
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#include "FemPostGroupExtension.h"
|
||||
#include <App/Document.h>
|
||||
|
||||
|
||||
@@ -20,14 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <vtkDataSet.h>
|
||||
#include <vtkXMLDataSetWriter.h>
|
||||
#include <vtkXMLMultiBlockDataWriter.h>
|
||||
#include <vtkTransform.h>
|
||||
#endif
|
||||
|
||||
#include <Base/Exception.h>
|
||||
|
||||
|
||||
@@ -21,10 +21,8 @@
|
||||
* *
|
||||
**************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include "FemPostObjectPy.h"
|
||||
#include "FemPostObjectPy.cpp"
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <cmath>
|
||||
|
||||
#include <Python.h>
|
||||
#include <vtkAppendFilter.h>
|
||||
#include <vtkDataSetReader.h>
|
||||
@@ -45,7 +43,6 @@
|
||||
#include <vtkStringArray.h>
|
||||
#include <vtkInformation.h>
|
||||
#include <vtkInformationVector.h>
|
||||
#endif
|
||||
|
||||
#include <Base/Console.h>
|
||||
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/FileInfo.h>
|
||||
#include <Base/UnitPy.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemSetGeometryObject.h"
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FemSetObject.h"
|
||||
#include <App/DocumentObjectPy.h>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QStandardPaths>
|
||||
#include <QStringList>
|
||||
|
||||
@@ -45,7 +43,6 @@
|
||||
#include <gp_Lin.hxx>
|
||||
#include <gp_Pln.hxx>
|
||||
#include <gp_Vec.hxx>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <Mod/Part/App/PartFeature.h>
|
||||
|
||||
@@ -21,9 +21,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#include <charconv>
|
||||
#include <cmath>
|
||||
@@ -64,7 +62,6 @@
|
||||
#include <vtkXMLPUnstructuredGridReader.h>
|
||||
#include <vtkXMLUnstructuredGridReader.h>
|
||||
#include <vtkXMLUnstructuredGridWriter.h>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
// HypothesisPy.h must be included as first file to avoid compiler warning,
|
||||
// see: https://forum.freecad.org/viewtopic.php?p=633192#p633192
|
||||
@@ -28,7 +27,6 @@
|
||||
|
||||
#include <SMESH_Version.h> // needed for SMESH_VERSION_MAJOR
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <StdMeshers_Arithmetic1D.hxx>
|
||||
#include <StdMeshers_AutomaticLength.hxx>
|
||||
#include <StdMeshers_CompositeSegment_1D.hxx>
|
||||
@@ -63,7 +61,6 @@
|
||||
#include <StdMeshers_StartEndLength.hxx>
|
||||
#include <StdMeshers_UseExisting_1D2D.hxx>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
#include <Base/Interpreter.h>
|
||||
#include <Mod/Part/App/TopoShapePy.h>
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||
* *
|
||||
* This file is part of the FreeCAD CAx development system. *
|
||||
* *
|
||||
* This library is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU Library General Public *
|
||||
* License as published by the Free Software Foundation; either *
|
||||
* version 2 of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This library 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 Library General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Library General Public *
|
||||
* License along with this library; see the file COPYING.LIB. If not, *
|
||||
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||
* Suite 330, Boston, MA 02111-1307, USA *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
@@ -25,8 +25,6 @@
|
||||
|
||||
#include <FCConfig.h>
|
||||
|
||||
#ifdef _PreComp_
|
||||
|
||||
// standard
|
||||
#include <algorithm>
|
||||
#include <bitset>
|
||||
@@ -56,7 +54,6 @@
|
||||
#include <SMDS_MeshElement.hxx>
|
||||
#include <SMDS_MeshGroup.hxx>
|
||||
#include <SMDS_MeshNode.hxx>
|
||||
#include <SMDS_PolyhedralVolumeOfNodes.hxx>
|
||||
#include <SMESHDS_Group.hxx>
|
||||
#include <SMESHDS_GroupBase.hxx>
|
||||
#include <SMESHDS_Mesh.hxx>
|
||||
@@ -101,6 +98,8 @@
|
||||
#include <StdMeshers_UseExisting_1D2D.hxx>
|
||||
|
||||
// Opencascade
|
||||
#include <Standard_Version.hxx>
|
||||
|
||||
#include <Adaptor3d_IsoCurve.hxx>
|
||||
#include <BRepAdaptor_CompCurve.hxx>
|
||||
#include <BRepAdaptor_Curve.hxx>
|
||||
@@ -133,7 +132,6 @@
|
||||
#include <ShapeAnalysis_ShapeTolerance.hxx>
|
||||
#include <ShapeAnalysis_Surface.hxx>
|
||||
#include <Standard_Real.hxx>
|
||||
#include <Standard_Version.hxx>
|
||||
#include <TColgp_Array2OfPnt.hxx>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Edge.hxx>
|
||||
@@ -208,5 +206,4 @@
|
||||
#include <NETGENPlugin_SimpleHypothesis_3D.hxx>
|
||||
#endif
|
||||
|
||||
#endif // _PreComp_
|
||||
#endif
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Python.h>
|
||||
#include <vtkCompositeDataSet.h>
|
||||
#include <vtkMultiBlockDataSet.h>
|
||||
@@ -43,7 +41,7 @@
|
||||
#include <vtkXMLRectilinearGridReader.h>
|
||||
#include <vtkXMLStructuredGridReader.h>
|
||||
#include <vtkXMLUnstructuredGridReader.h>
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef FC_USE_VTK_PYTHON
|
||||
#include <vtkPythonUtil.h>
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QTextCharFormat>
|
||||
#endif
|
||||
|
||||
|
||||
#include "AbaqusHighlighter.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Gui/Application.h>
|
||||
#include <Gui/Document.h>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/PyObjectBase.h>
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QFileInfo>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/DocumentObjectPy.h>
|
||||
#include <Gui/BitmapFactory.h>
|
||||
|
||||
@@ -318,7 +318,6 @@ SET(FemGui_SRCS_Module
|
||||
FemSettings.cpp
|
||||
FemSettings.h
|
||||
Resources/Fem.qrc
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
PropertyFemMeshItem.cpp
|
||||
PropertyFemMeshItem.h
|
||||
@@ -355,12 +354,6 @@ SET(FemGui_SRCS
|
||||
${FemGui_SRCS_Post}
|
||||
)
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${FemGui_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(FemGui PreCompiled.h PreCompiled.cpp PCH_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
SET(FemGuiIcon_SVG
|
||||
Resources/icons/FemWorkbench.svg
|
||||
)
|
||||
@@ -386,6 +379,12 @@ SET(FemGuiSymbol_IV
|
||||
|
||||
add_library(FemGui SHARED ${FemGui_SRCS} ${FemGuiIcon_SVG} ${FemGuiSymbol_IV})
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
target_precompile_headers(FemGui PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:"${CMAKE_CURRENT_LIST_DIR}/PreCompiled.h">
|
||||
)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
target_include_directories(
|
||||
FemGui
|
||||
PRIVATE
|
||||
|
||||
@@ -21,8 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/events/SoMouseButtonEvent.h>
|
||||
#include <Inventor/nodes/SoCamera.h>
|
||||
#include <Inventor/nodes/SoEventCallback.h>
|
||||
@@ -31,7 +29,7 @@
|
||||
#include <QMessageBox>
|
||||
#include <SMESHDS_Mesh.hxx>
|
||||
#include <SMESH_Mesh.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <App/DocumentObserver.h>
|
||||
|
||||
@@ -23,12 +23,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <QStandardPaths>
|
||||
#include <QThread>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Application.h>
|
||||
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <QStandardPaths>
|
||||
#endif
|
||||
|
||||
#include "DlgSettingsFemElmerImp.h"
|
||||
#include "ui_DlgSettingsFemElmer.h"
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Gui/Application.h>
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <Mod/Fem/App/FemTools.h>
|
||||
|
||||
@@ -22,12 +22,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <QStandardPaths>
|
||||
#include <QThread>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Application.h>
|
||||
#include "DlgSettingsFemGmshImp.h"
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Gui/Application.h>
|
||||
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <QStandardPaths>
|
||||
#endif
|
||||
|
||||
#include "DlgSettingsFemMystranImp.h"
|
||||
#include "ui_DlgSettingsFemMystran.h"
|
||||
|
||||
@@ -22,11 +22,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <QStandardPaths>
|
||||
#endif
|
||||
|
||||
#include <Gui/Application.h>
|
||||
|
||||
|
||||
@@ -21,16 +21,14 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/nodes/SoCone.h>
|
||||
#include <Inventor/nodes/SoCube.h>
|
||||
#include <Inventor/nodes/SoCylinder.h>
|
||||
#include <Inventor/nodes/SoTranslation.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
#include <Inventor/nodes/SoRotation.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include "FemGuiTools.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
******************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Tools.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/Application.h>
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2008 Jürgen Riegel <juergen.riegel@web.de> *
|
||||
* *
|
||||
* This file is part of the FreeCAD CAx development system. *
|
||||
* *
|
||||
* This library is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU Library General Public *
|
||||
* License as published by the Free Software Foundation; either *
|
||||
* version 2 of the License, or (at your option) any later version. *
|
||||
* *
|
||||
* This library 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 Library General Public License for more details. *
|
||||
* *
|
||||
* You should have received a copy of the GNU Library General Public *
|
||||
* License along with this library; see the file COPYING.LIB. If not, *
|
||||
* write to the Free Software Foundation, Inc., 59 Temple Place, *
|
||||
* Suite 330, Boston, MA 02111-1307, USA *
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
@@ -25,8 +25,6 @@
|
||||
|
||||
#include <FCConfig.h>
|
||||
|
||||
#ifdef _PreComp_
|
||||
|
||||
// standard
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
@@ -159,6 +157,4 @@
|
||||
#include <vtkLookupTable.h>
|
||||
#include <vtkPointData.h>
|
||||
|
||||
#endif //_PreComp_
|
||||
|
||||
#endif // FEMGUI_PRECOMPILED_H
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QTextStream>
|
||||
#include <SMESH_Mesh.hxx>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Mod/Fem/App/FemMeshProperty.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Gui/BitmapFactory.h>
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <boost/algorithm/string.hpp>
|
||||
|
||||
#include <Inventor/events/SoMouseButtonEvent.h>
|
||||
@@ -34,7 +32,6 @@
|
||||
#include <SMESH_Mesh.hxx>
|
||||
#include <SMESHDS_Mesh.hxx>
|
||||
#include <SMESH_MeshEditor.hxx>
|
||||
#endif
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Gui/Application.h>
|
||||
|
||||
@@ -20,15 +20,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/events/SoMouseButtonEvent.h>
|
||||
#include <Inventor/nodes/SoCamera.h>
|
||||
#include <Inventor/nodes/SoEventCallback.h>
|
||||
|
||||
#include <SMESHDS_Mesh.hxx>
|
||||
#include <SMESH_Mesh.hxx>
|
||||
#endif
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Gui/Application.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Exception.h>
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Exception.h>
|
||||
#include <Gui/Application.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Exception.h>
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Exception.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Gui/BitmapFactory.h>
|
||||
|
||||
|
||||
@@ -21,15 +21,13 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QKeyEvent>
|
||||
#include <QListWidget>
|
||||
#include <QMessageBox>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Application.h>
|
||||
|
||||
@@ -21,16 +21,14 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <TopoDS.hxx>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -23,14 +23,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <sstream>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include "Mod/Fem/App/FemConstraintContact.h"
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -24,13 +24,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Selection/SelectionObject.h>
|
||||
|
||||
@@ -21,13 +21,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -22,16 +22,14 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <TopoDS.hxx>
|
||||
#include <TopoDS_Shape.hxx>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <App/DocumentObject.h>
|
||||
|
||||
@@ -21,15 +21,13 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <TopoDS.hxx>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/DocumentObject.h>
|
||||
#include <App/Datums.h>
|
||||
|
||||
@@ -21,13 +21,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#include <limits>
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <TopoDS.hxx>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -23,14 +23,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Selection/SelectionObject.h>
|
||||
|
||||
@@ -23,12 +23,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Mod/Fem/App/FemConstraintInitialTemperature.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "TaskFemConstraintOnBoundary.h"
|
||||
|
||||
|
||||
@@ -23,14 +23,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <TopoDS.hxx>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/DocumentObject.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -21,14 +21,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Selection/SelectionObject.h>
|
||||
|
||||
@@ -21,12 +21,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QMessageBox>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <QMessageBox>
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Document.h>
|
||||
|
||||
@@ -20,14 +20,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -21,14 +21,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Selection/SelectionObject.h>
|
||||
|
||||
@@ -23,14 +23,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -24,16 +24,14 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <BRepAdaptor_Surface.hxx>
|
||||
#include <QAction>
|
||||
#include <QMessageBox>
|
||||
#include <TopoDS.hxx>
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Selection/SelectionObject.h>
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QString>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/DocumentObject.h>
|
||||
#include <Gui/BitmapFactory.h>
|
||||
|
||||
@@ -20,9 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/SoPickedPoint.h>
|
||||
#include <Inventor/events/SoMouseButtonEvent.h>
|
||||
#include <Inventor/nodes/SoCoordinate3.h>
|
||||
@@ -34,7 +31,6 @@
|
||||
#include <QMessageBox>
|
||||
#include <QMetaMethod>
|
||||
#include <QToolTip>
|
||||
#endif
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Base/Console.h>
|
||||
|
||||
@@ -20,12 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
|
||||
#endif
|
||||
|
||||
#include <Gui/PythonWrapper.h>
|
||||
#include <Gui/BitmapFactory.h>
|
||||
#include <Mod/Fem/App/FemPostFilter.h>
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user