From 3f7ea7bb277d4b9c4fcb62aac6bd256e1181e220 Mon Sep 17 00:00:00 2001 From: Uwe Date: Fri, 9 Dec 2022 02:54:12 +0100 Subject: [PATCH] [Robot] Gui: enable precompiled header --- src/Mod/Robot/Gui/CMakeLists.txt | 7 ++++++- src/Mod/Robot/Gui/PreCompiled.cpp | 1 - src/Mod/Robot/Gui/PreCompiled.h | 4 ---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/Mod/Robot/Gui/CMakeLists.txt b/src/Mod/Robot/Gui/CMakeLists.txt index 5bd908f3a5..e8ee4133d1 100644 --- a/src/Mod/Robot/Gui/CMakeLists.txt +++ b/src/Mod/Robot/Gui/CMakeLists.txt @@ -119,11 +119,16 @@ SET(RobotGui_SRCS ${RobotGui_SRCS_TaskDlg} ) +if(FREECAD_USE_PCH) + add_definitions(-D_PreComp_) + GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${RobotGui_SRCS}) + ADD_MSVC_PRECOMPILED_HEADER(RobotGui PreCompiled.h PreCompiled.cpp PCH_SRCS) +endif(FREECAD_USE_PCH) + SET(RobotGuiIcon_SVG Resources/icons/RobotWorkbench.svg ) - add_library(RobotGui SHARED ${RobotGui_SRCS} ${RobotGuiIcon_SVG}) target_link_libraries(RobotGui ${RobotGui_LIBS}) diff --git a/src/Mod/Robot/Gui/PreCompiled.cpp b/src/Mod/Robot/Gui/PreCompiled.cpp index 7cd1cae80f..cde4369c5b 100644 --- a/src/Mod/Robot/Gui/PreCompiled.cpp +++ b/src/Mod/Robot/Gui/PreCompiled.cpp @@ -20,5 +20,4 @@ * * ***************************************************************************/ - #include "PreCompiled.h" diff --git a/src/Mod/Robot/Gui/PreCompiled.h b/src/Mod/Robot/Gui/PreCompiled.h index e0dad2e726..eb2a061446 100644 --- a/src/Mod/Robot/Gui/PreCompiled.h +++ b/src/Mod/Robot/Gui/PreCompiled.h @@ -50,10 +50,6 @@ // STL #include -#ifdef FC_OS_WIN32 -# include -#endif - // Qt #include #include