From 604f8296e42a2174a35fed7c8d4b49aae1fa454c Mon Sep 17 00:00:00 2001 From: Abdullah Tahiri Date: Wed, 15 May 2019 17:52:05 +0200 Subject: [PATCH] PCH: Path GUI PCH Enable --- src/Mod/Path/Gui/CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Mod/Path/Gui/CMakeLists.txt b/src/Mod/Path/Gui/CMakeLists.txt index 21d007e5fd..eb05743bbe 100644 --- a/src/Mod/Path/Gui/CMakeLists.txt +++ b/src/Mod/Path/Gui/CMakeLists.txt @@ -94,6 +94,12 @@ SET(PathGui_SRCS ${PathGui_SRCS_ViewProvider} ) +if(FREECAD_USE_PCH) + add_definitions(-D_PreComp_) + GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${PathGui_SRCS}) + ADD_MSVC_PRECOMPILED_HEADER(PathGui PreCompiled.h PreCompiled.cpp PCH_SRCS) +endif(FREECAD_USE_PCH) + SET(PathGuiIcon_SVG Resources/icons/PathWorkbench.svg )