From 55a5f652e1c2b64f30e7c77575b4977f1f8beef7 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Wed, 15 May 2019 17:48:01 +0200 Subject: [PATCH] PCH: PartDesign GUI PCH Enable --- src/Mod/PartDesign/Gui/CMakeLists.txt | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/Mod/PartDesign/Gui/CMakeLists.txt b/src/Mod/PartDesign/Gui/CMakeLists.txt index 78969402fd..292221c8c6 100644 --- a/src/Mod/PartDesign/Gui/CMakeLists.txt +++ b/src/Mod/PartDesign/Gui/CMakeLists.txt @@ -274,6 +274,13 @@ SET(PartDesignGui_SRCS ${Python_SRCS} ) +if(FREECAD_USE_PCH) + add_definitions(-D_PreComp_) + GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${PartDesignGui_SRCS}) + ADD_MSVC_PRECOMPILED_HEADER(PartDesignGui PreCompiled.h PreCompiled.cpp PCH_SRCS) +endif(FREECAD_USE_PCH) + + SET(PartDesignGuiIcon_SVG Resources/icons/PartDesignWorkbench.svg )