[Points] enable precompiled headers

This commit is contained in:
Uwe
2022-12-08 04:16:23 +01:00
parent 323055ec3f
commit 49ab0221be
3 changed files with 12 additions and 10 deletions

View File

@@ -54,6 +54,12 @@ set(Points_Scripts
../Init.py
)
if(FREECAD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${Points_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(Points PreCompiled.h PreCompiled.cpp PCH_SRCS)
endif(FREECAD_USE_PCH)
add_library(Points SHARED ${Points_SRCS} ${Points_Scripts})
link_directories(${CMAKE_BINARY_DIR}/src/3rdParty/libE57Format)

View File

@@ -54,6 +54,12 @@ SET(PointsGuiIcon_SVG
Resources/icons/PointsWorkbench.svg
)
if(FREECAD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${PointsGui_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(PointsGui PreCompiled.h PreCompiled.cpp PCH_SRCS)
endif(FREECAD_USE_PCH)
add_library(PointsGui SHARED ${PointsGui_SRCS} ${PointsGui_Scripts} ${PointsGuiIcon_SVG})
target_link_libraries(PointsGui ${PointsGui_LIBS})

View File

@@ -25,12 +25,6 @@
#include <FCConfig.h>
#ifdef FC_OS_WIN32
# ifndef NOMINMAX
# define NOMINMAX
# endif
#endif
#ifdef _PreComp_
// STL
@@ -38,10 +32,6 @@
# include <limits>
# include <memory>
#ifdef FC_OS_WIN32
# include <windows.h>
#endif
// boost
# include <boost/math/special_functions/fpclassify.hpp>