PCH for Sketcher/PartDesign

This commit is contained in:
Abdullah Tahiri
2019-04-27 19:04:12 +02:00
committed by abdullahtahiriyo
parent a733dc6ddd
commit e80af8b4f2
4 changed files with 44 additions and 2 deletions

View File

@@ -112,9 +112,23 @@ SET(Sketcher_SRCS
${Datatypes_SRCS}
)
SET(Sketcher_PCH_SRCS
${Features_SRCS}
${SketchModule_SRCS}
${Python_SRCS}
${Properties_SRCS}
${Datatypes_SRCS}
)
add_library(Sketcher SHARED ${Sketcher_SRCS})
target_link_libraries(Sketcher ${Sketcher_LIBS})
if(FREECAD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" Sketcher_CPP_SRCS ${Sketcher_PCH_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(Sketcher PreCompiled.h PreCompiled.cpp Sketcher_CPP_SRCS)
endif(FREECAD_USE_PCH)
SET_BIN_DIR(Sketcher Sketcher /Mod/Sketcher)
SET_PYTHON_PREFIX_SUFFIX(Sketcher)

View File

@@ -53,6 +53,11 @@
#include <bitset>
#include <Mod/Part/App/OpenCascadeAll.h>
// Other needed opencascade
# include <ShapeFix_Wire.hxx>
# include <BRepOffsetAPI_NormalProjection.hxx>
# include <GeomConvert_BSplineCurveKnotSplitting.hxx>
#include <Python.h>
#elif defined(FC_OS_WIN32)