Mesh: 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:
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/MeasureManager.h>
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -382,7 +382,6 @@ SET(Mesh_SRCS
|
||||
MeshPyImp.cpp
|
||||
MeshTexture.cpp
|
||||
MeshTexture.h
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
Segment.cpp
|
||||
Segment.h
|
||||
@@ -398,9 +397,9 @@ if (MINGW AND CMAKE_COMPILER_IS_CLANGXX)
|
||||
endif()
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${Core_SRCS} ${Mesh_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(Mesh PreCompiled.h PreCompiled.cpp PCH_SRCS)
|
||||
target_precompile_headers(Mesh PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:"${CMAKE_CURRENT_LIST_DIR}/PreCompiled.h">
|
||||
)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
# Suppress some very long Eigen3 warnings of older versions
|
||||
|
||||
@@ -20,12 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Sequencer.h>
|
||||
|
||||
@@ -20,14 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <Base/BoundBox.h>
|
||||
#include <Base/Console.h>
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Exception.h>
|
||||
#include <Base/Sequencer.h>
|
||||
|
||||
@@ -20,12 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <functional>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <QFuture>
|
||||
#include <QFutureWatcher>
|
||||
|
||||
@@ -53,14 +53,11 @@
|
||||
// We thus solve for 5 unknown parameters.
|
||||
// Thus for the solution to succeed the initial axis direction should be reasonable.
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Converter.h>
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include "Decimation.h"
|
||||
#include "MeshKernel.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <cmath>
|
||||
|
||||
|
||||
@@ -20,13 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <map>
|
||||
#include <queue>
|
||||
#endif
|
||||
|
||||
|
||||
#include <boost/math/special_functions/fpclassify.hpp>
|
||||
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <Mod/Mesh/App/WildMagic4/Wm4DistSegment3Triangle3.h>
|
||||
#include <Mod/Mesh/App/WildMagic4/Wm4DistVector3Triangle3.h>
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <vector>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Matrix.h>
|
||||
#include <Base/Sequencer.h>
|
||||
|
||||
@@ -20,13 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include "Algorithm.h"
|
||||
#include "Grid.h"
|
||||
|
||||
@@ -20,15 +20,13 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <boost/tokenizer.hpp>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
#include <xercesc/dom/DOM.hpp>
|
||||
#include <xercesc/parsers/XercesDOMParser.hpp>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Core/MeshIO.h"
|
||||
#include "Core/MeshKernel.h"
|
||||
|
||||
@@ -20,14 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <boost/tokenizer.hpp>
|
||||
#include <istream>
|
||||
#include <map>
|
||||
#endif
|
||||
|
||||
#include "Core/MeshIO.h"
|
||||
#include "Core/MeshKernel.h"
|
||||
|
||||
@@ -21,11 +21,9 @@
|
||||
* *
|
||||
**************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <istream>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Core/MeshIO.h"
|
||||
#include "Core/MeshKernel.h"
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <ostream>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Core/Evaluation.h"
|
||||
#include "Core/MeshKernel.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "Core/Iterator.h"
|
||||
#include <Base/Builder3D.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "Core/Iterator.h"
|
||||
#include <Base/Console.h>
|
||||
|
||||
@@ -20,14 +20,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <iomanip>
|
||||
#include <iostream>
|
||||
#include <map>
|
||||
#include <set>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Info.h"
|
||||
#include "Iterator.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifdef _MSC_VER
|
||||
#pragma warning(disable : 4396)
|
||||
#endif
|
||||
|
||||
@@ -20,15 +20,13 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <iomanip>
|
||||
#include <sstream>
|
||||
#include <string_view>
|
||||
#endif
|
||||
|
||||
|
||||
#include <boost/algorithm/string.hpp>
|
||||
#include <boost/convert.hpp>
|
||||
|
||||
@@ -20,16 +20,14 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#include <queue>
|
||||
#include <stdexcept>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Exception.h>
|
||||
#include <Base/Stream.h>
|
||||
|
||||
@@ -20,13 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <map>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Grid.h"
|
||||
#include "Iterator.h"
|
||||
|
||||
@@ -20,12 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include "Algorithm.h"
|
||||
#include "Approximation.h"
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <fstream>
|
||||
#include <ios>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Builder3D.h>
|
||||
#include <Base/Sequencer.h>
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <cmath>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Tools.h>
|
||||
|
||||
|
||||
@@ -20,14 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cstdlib>
|
||||
#include <iterator>
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include "SphereFit.h"
|
||||
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Tools.h"
|
||||
|
||||
|
||||
@@ -20,16 +20,14 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <boost/core/ignore_unused.hpp>
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <queue>
|
||||
#include <utility>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Mod/Mesh/App/WildMagic4/Wm4MeshCurvature.h>
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <cmath>
|
||||
#include <limits>
|
||||
#include <queue>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Exception.h>
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <cmath>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Sequencer.h>
|
||||
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Grid.h"
|
||||
#include "Iterator.h"
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <cmath>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Algorithm.h"
|
||||
#include "Approximation.h"
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Edge.h"
|
||||
#include "Mesh.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Converter.h>
|
||||
#include <Base/GeometryPyCXX.h>
|
||||
|
||||
@@ -20,13 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <boost/algorithm/string/replace.hpp>
|
||||
#include <boost/core/ignore_unused.hpp>
|
||||
#include <vector>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/ComplexGeoData.h>
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Facet.h"
|
||||
#include "Mesh.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/GeometryPyCXX.h>
|
||||
#include <Base/VectorPy.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "Core/Curvature.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "Core/Degeneration.h"
|
||||
#include "Core/Triangulation.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FeatureMeshExport.h"
|
||||
#include "MeshFeature.h"
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FeatureMeshImport.h"
|
||||
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <Base/Converter.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "Core/Iterator.h"
|
||||
#include "Core/SetOperations.h"
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include <App/Document.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Matrix.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "FeatureMeshTransformDemolding.h"
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/Document.h>
|
||||
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Builder3D.h>
|
||||
#include <Base/Console.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/FeaturePythonPyImp.h>
|
||||
|
||||
|
||||
@@ -20,10 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#endif
|
||||
|
||||
#include "MeshFeature.h"
|
||||
// inclusion of the generated files (generated out of MeshFeaturePy.xml)
|
||||
|
||||
@@ -20,11 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
#include <Base/VectorPy.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Converter.h>
|
||||
#include <Base/Exception.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Base/Converter.h>
|
||||
#include <Base/GeometryPyCXX.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "MeshTexture.h"
|
||||
|
||||
|
||||
@@ -1,24 +0,0 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2003 Werner Mayer <wmayer[at]users.sourceforge.net> *
|
||||
* *
|
||||
* 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"
|
||||
@@ -26,8 +26,6 @@
|
||||
|
||||
#include <FCConfig.h>
|
||||
|
||||
#ifdef _PreComp_
|
||||
|
||||
// standard
|
||||
#include <cassert>
|
||||
#include <cmath>
|
||||
@@ -74,6 +72,4 @@
|
||||
#include <xercesc/util/XMLUniDefs.hpp>
|
||||
#include <xercesc/util/XercesVersion.hpp>
|
||||
|
||||
#endif //_PreComp_
|
||||
|
||||
#endif
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include "Mesh.h"
|
||||
#include "MeshPy.h"
|
||||
|
||||
@@ -20,15 +20,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/SoDB.h>
|
||||
#include <Inventor/SoInput.h>
|
||||
#include <Inventor/annex/ForeignFiles/SoSTLFileKit.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
|
||||
#include <QApplication>
|
||||
#endif
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Interpreter.h>
|
||||
|
||||
@@ -126,7 +126,6 @@ SET(MeshGui_SRCS
|
||||
AppMeshGui.cpp
|
||||
Command.cpp
|
||||
Doxygen.cpp
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
MeshEditor.cpp
|
||||
MeshEditor.h
|
||||
@@ -140,12 +139,6 @@ 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
|
||||
)
|
||||
@@ -159,6 +152,13 @@ if (EIGEN3_NO_DEPRECATED_COPY)
|
||||
endif ()
|
||||
|
||||
add_library(MeshGui SHARED ${MeshGui_SRCS} ${MeshGuiIcon_SVG})
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
target_precompile_headers(MeshGui PRIVATE
|
||||
$<$<COMPILE_LANGUAGE:CXX>:"${CMAKE_CURRENT_LIST_DIR}/PreCompiled.h">
|
||||
)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
target_include_directories(
|
||||
MeshGui
|
||||
PRIVATE
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <FCConfig.h>
|
||||
|
||||
#ifdef FC_OS_WIN32
|
||||
#include <windows.h>
|
||||
#endif
|
||||
@@ -34,7 +34,6 @@
|
||||
#include <qinputdialog.h>
|
||||
#include <qmessagebox.h>
|
||||
#include <qstringlist.h>
|
||||
#endif
|
||||
|
||||
#include <Gui/InventorAll.h>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Gui/CommandT.h>
|
||||
#include <Gui/Selection/Selection.h>
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#ifndef MESHGUI_DLGDECIMATING_H
|
||||
#define MESHGUI_DLGDECIMATING_H
|
||||
|
||||
#include <Mod/Mesh/MeshGlobal.h>
|
||||
|
||||
#include <QDialog>
|
||||
#include <Gui/TaskView/TaskDialog.h>
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
|
||||
@@ -20,13 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QDockWidget>
|
||||
#include <QMessageBox>
|
||||
#include <QPointer>
|
||||
#include <QScrollArea>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Application.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "DlgEvaluateSettings.h"
|
||||
#include "ui_DlgEvaluateSettings.h"
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#ifndef MESHGUI_DLG_EVALUATE_SETTINGS_H
|
||||
#define MESHGUI_DLG_EVALUATE_SETTINGS_H
|
||||
|
||||
#include <FCGlobal.h>
|
||||
|
||||
#include <QDialog>
|
||||
|
||||
namespace MeshGui
|
||||
|
||||
@@ -20,11 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <qmessagebox.h>
|
||||
#endif
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Base/Interpreter.h>
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
#ifndef MESHGUI_DLGREGULARSOLID_IMP_H
|
||||
#define MESHGUI_DLGREGULARSOLID_IMP_H
|
||||
|
||||
#include <Mod/Mesh/MeshGlobal.h>
|
||||
|
||||
#include <QDialog>
|
||||
#include <memory>
|
||||
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <Mod/Mesh/App/Core/MeshIO.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Gui/Window.h>
|
||||
|
||||
|
||||
@@ -20,11 +20,9 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QButtonGroup>
|
||||
#include <QDialogButtonBox>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Command.h>
|
||||
#include <Gui/Selection/Selection.h>
|
||||
|
||||
@@ -27,6 +27,7 @@
|
||||
#include <QDialog>
|
||||
#include <Gui/TaskView/TaskDialog.h>
|
||||
#include <Gui/TaskView/TaskView.h>
|
||||
|
||||
#ifndef MESH_GLOBAL_H
|
||||
#include <Mod/Mesh/MeshGlobal.h>
|
||||
#endif
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
/*! \namespace MeshGui
|
||||
\brief The namespace of the Mesh Graphical interface layer library
|
||||
|
||||
@@ -20,9 +20,7 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <QMenu>
|
||||
#include <QTimer>
|
||||
#include <algorithm>
|
||||
@@ -45,7 +43,6 @@
|
||||
#include <Inventor/nodes/SoPointSet.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
#include <Inventor/nodes/SoShapeHints.h>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <QBitmap>
|
||||
|
||||
@@ -30,7 +28,6 @@
|
||||
#include <Inventor/details/SoFaceDetail.h>
|
||||
#include <Inventor/events/SoMouseButtonEvent.h>
|
||||
#include <Inventor/nodes/SoCamera.h>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
/***************************************************************************
|
||||
* Copyright (c) 2003 Werner Mayer <wmayer[at]users.sourceforge.net> *
|
||||
* *
|
||||
* 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 <ios>
|
||||
|
||||
@@ -46,8 +44,8 @@
|
||||
// Inventor
|
||||
#include <Gui/InventorAll.h>
|
||||
|
||||
#elif defined(FC_OS_WIN32)
|
||||
#if defined(FC_OS_WIN32)
|
||||
#include <Windows.h>
|
||||
#endif //_PreComp_
|
||||
#endif
|
||||
|
||||
#endif // MESHGUI_PRECOMPILED_H
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include <Mod/Mesh/App/MeshFeature.h>
|
||||
|
||||
|
||||
@@ -20,13 +20,11 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QElapsedTimer>
|
||||
#include <QMessageBox>
|
||||
#include <QPointer>
|
||||
#include <QTextCursor>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef MESHGUI_REMESHGMSH_H
|
||||
#define MESHGUI_REMESHGMSH_H
|
||||
|
||||
#include <Mod/Mesh/MeshGlobal.h>
|
||||
|
||||
#include <memory>
|
||||
#include <QDialog>
|
||||
#include <QProcess>
|
||||
|
||||
@@ -20,11 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
|
||||
#include <QPushButton>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Application.h>
|
||||
#include <Gui/Document.h>
|
||||
|
||||
@@ -20,11 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
#include <sstream>
|
||||
|
||||
@@ -30,7 +28,6 @@
|
||||
#include <QMessageBox>
|
||||
#include <QPointer>
|
||||
#include <QVBoxLayout>
|
||||
#endif
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <App/Document.h>
|
||||
|
||||
@@ -20,7 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#include "Selection.h"
|
||||
#include "ui_Selection.h"
|
||||
|
||||
@@ -23,6 +23,8 @@
|
||||
#ifndef MESHGUI_SELECTION_H
|
||||
#define MESHGUI_SELECTION_H
|
||||
|
||||
#include <Mod/Mesh/MeshGlobal.h>
|
||||
|
||||
#include <vector>
|
||||
#include <QWidget>
|
||||
|
||||
|
||||
@@ -20,15 +20,16 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#include <FCConfig.h>
|
||||
|
||||
#ifndef FC_OS_WIN32
|
||||
#ifndef GL_GLEXT_PROTOTYPES
|
||||
#define GL_GLEXT_PROTOTYPES 1
|
||||
#endif
|
||||
#else
|
||||
#include <windows.h>
|
||||
#endif
|
||||
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#ifdef FC_OS_MACOSX
|
||||
@@ -54,7 +55,7 @@
|
||||
#include <Inventor/elements/SoViewingMatrixElement.h>
|
||||
#include <Inventor/errors/SoDebugError.h>
|
||||
#include <Inventor/nodes/SoCoordinate3.h>
|
||||
#endif
|
||||
|
||||
#include <Inventor/C/glue/gl.h>
|
||||
|
||||
#include <Gui/GLBuffer.h>
|
||||
|
||||
@@ -20,8 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <FCConfig.h>
|
||||
|
||||
#include <algorithm>
|
||||
#include <limits>
|
||||
#ifdef FC_OS_WIN32
|
||||
@@ -48,7 +48,6 @@
|
||||
#include <Inventor/details/SoFaceDetail.h>
|
||||
#include <Inventor/details/SoLineDetail.h>
|
||||
#include <Inventor/misc/SoState.h>
|
||||
#endif
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Base/Exception.h>
|
||||
|
||||
@@ -20,9 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <limits>
|
||||
|
||||
#include <FCConfig.h>
|
||||
|
||||
#ifdef FC_OS_WIN32
|
||||
#include <Windows.h>
|
||||
#endif
|
||||
@@ -39,7 +40,6 @@
|
||||
#include <Inventor/elements/SoCoordinateElement.h>
|
||||
#include <Inventor/elements/SoLazyElement.h>
|
||||
#include <Inventor/misc/SoState.h>
|
||||
#endif
|
||||
|
||||
#include "SoPolygon.h"
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QBuffer>
|
||||
#include <QByteArray>
|
||||
|
||||
@@ -32,7 +30,6 @@
|
||||
#include <Inventor/nodes/SoIndexedFaceSet.h>
|
||||
#include <Inventor/nodes/SoOrthographicCamera.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
#endif
|
||||
|
||||
#include <Gui/SoFCOffscreenRenderer.h>
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QAction>
|
||||
#include <QMenu>
|
||||
#include <cmath>
|
||||
@@ -50,7 +48,6 @@
|
||||
#include <Inventor/nodes/SoShapeHints.h>
|
||||
#include <Inventor/nodes/SoTransform.h>
|
||||
#include <Inventor/VRMLnodes/SoVRMLGroup.h>
|
||||
#endif
|
||||
|
||||
#include <QFuture>
|
||||
#include <QFutureWatcher>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
#include <iomanip>
|
||||
#include <ios>
|
||||
@@ -39,7 +37,6 @@
|
||||
#include <Inventor/nodes/SoMaterial.h>
|
||||
#include <Inventor/nodes/SoShapeHints.h>
|
||||
#include <Inventor/sensors/SoIdleSensor.h>
|
||||
#endif
|
||||
|
||||
#include <boost/range/adaptors.hpp>
|
||||
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/nodes/SoBaseColor.h>
|
||||
#include <Inventor/nodes/SoCoordinate3.h>
|
||||
#include <Inventor/nodes/SoDrawStyle.h>
|
||||
@@ -30,7 +28,7 @@
|
||||
#include <Inventor/nodes/SoMarkerSet.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
#include <Inventor/nodes/SoShapeHints.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <App/Application.h>
|
||||
#include <Base/Parameter.h>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <algorithm>
|
||||
|
||||
#include <Inventor/nodes/SoBaseColor.h>
|
||||
@@ -30,7 +28,6 @@
|
||||
#include <Inventor/nodes/SoIndexedLineSet.h>
|
||||
#include <Inventor/nodes/SoMaterial.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
#endif
|
||||
|
||||
#include <App/Document.h>
|
||||
#include <Gui/Selection/Selection.h>
|
||||
|
||||
@@ -20,10 +20,8 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <sstream>
|
||||
#endif
|
||||
|
||||
|
||||
#include "ViewProvider.h"
|
||||
// inclusion of the generated files (generated out of ViewProviderMeshPy.xml)
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
|
||||
// clang-format off
|
||||
#include "PreCompiled.h"
|
||||
#include "ViewProviderPython.h"
|
||||
// clang-format on
|
||||
|
||||
|
||||
@@ -20,14 +20,12 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/manips/SoTransformerManip.h>
|
||||
#include <Inventor/nodes/SoDrawStyle.h>
|
||||
#include <Inventor/nodes/SoMaterial.h>
|
||||
#include <Inventor/nodes/SoNormalBinding.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Selection/SoFCSelection.h>
|
||||
#include <Mod/Mesh/App/MeshFeature.h>
|
||||
|
||||
@@ -20,8 +20,6 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <Inventor/draggers/SoTrackballDragger.h>
|
||||
#include <Inventor/manips/SoTransformerManip.h>
|
||||
#include <Inventor/nodes/SoAntiSquish.h>
|
||||
@@ -31,7 +29,7 @@
|
||||
#include <Inventor/nodes/SoMaterialBinding.h>
|
||||
#include <Inventor/nodes/SoSeparator.h>
|
||||
#include <Inventor/nodes/SoSurroundScale.h>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Base/Console.h>
|
||||
#include <Gui/Selection/SoFCSelection.h>
|
||||
|
||||
@@ -20,12 +20,10 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
#ifndef _PreComp_
|
||||
#include <QGroupBox>
|
||||
#include <QObject>
|
||||
#include <QLabel>
|
||||
#endif
|
||||
|
||||
|
||||
#include <Gui/Application.h>
|
||||
#include <Gui/Command.h>
|
||||
|
||||
Reference in New Issue
Block a user