[Points] enable precompiled headers
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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})
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user