From 8550ce91ee4d0f102bcb3f1a5e2719b4165bb716 Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Wed, 15 May 2019 17:46:08 +0200 Subject: [PATCH] PCH: Enable PartGui PCH --- src/Mod/Part/Gui/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Part/Gui/CMakeLists.txt b/src/Mod/Part/Gui/CMakeLists.txt index bee5d964cb..64e43fb422 100644 --- a/src/Mod/Part/Gui/CMakeLists.txt +++ b/src/Mod/Part/Gui/CMakeLists.txt @@ -258,6 +258,12 @@ SET(PartGui_SRCS TaskAttacher.cpp ) +if(FREECAD_USE_PCH) + add_definitions(-D_PreComp_) + GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${PartGui_SRCS}) + ADD_MSVC_PRECOMPILED_HEADER(PartGui PreCompiled.h PreCompiled.cpp PCH_SRCS) +endif(FREECAD_USE_PCH) + SET(PartGuiIcon_SVG Resources/icons/PartWorkbench.svg )