From f1a836b82a1bddb43cd7430a90e8173fcc7dfd4a Mon Sep 17 00:00:00 2001 From: Uwe Date: Wed, 14 Dec 2022 03:43:25 +0100 Subject: [PATCH] [Start] Gui: enable precompiled headers - also some whitespace changes --- src/Mod/Points/Gui/CMakeLists.txt | 1 - src/Mod/Start/App/CMakeLists.txt | 3 --- src/Mod/Start/App/PreCompiled.cpp | 1 - src/Mod/Start/Gui/CMakeLists.txt | 6 ++++++ src/Mod/Start/Gui/PreCompiled.cpp | 1 - src/Mod/Start/Gui/Workbench.cpp | 1 - 6 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/Mod/Points/Gui/CMakeLists.txt b/src/Mod/Points/Gui/CMakeLists.txt index 5f2572b1c2..751bdcb94f 100644 --- a/src/Mod/Points/Gui/CMakeLists.txt +++ b/src/Mod/Points/Gui/CMakeLists.txt @@ -63,7 +63,6 @@ endif(FREECAD_USE_PCH) add_library(PointsGui SHARED ${PointsGui_SRCS} ${PointsGui_Scripts} ${PointsGuiIcon_SVG}) target_link_libraries(PointsGui ${PointsGui_LIBS}) - fc_target_copy_resource_flat(PointsGui ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_BINARY_DIR}/Mod/Points diff --git a/src/Mod/Start/App/CMakeLists.txt b/src/Mod/Start/App/CMakeLists.txt index 00a4faad99..adab263390 100644 --- a/src/Mod/Start/App/CMakeLists.txt +++ b/src/Mod/Start/App/CMakeLists.txt @@ -16,12 +16,9 @@ SET(Start_SRCS StartConfiguration.h ) - - add_library(Start SHARED ${Start_SRCS}) target_link_libraries(Start ${Start_LIBS}) - SET_BIN_DIR(Start Start /Mod/Start) SET_PYTHON_PREFIX_SUFFIX(Start) diff --git a/src/Mod/Start/App/PreCompiled.cpp b/src/Mod/Start/App/PreCompiled.cpp index 7884a4c462..fde9b79a43 100644 --- a/src/Mod/Start/App/PreCompiled.cpp +++ b/src/Mod/Start/App/PreCompiled.cpp @@ -20,5 +20,4 @@ * * ***************************************************************************/ - #include "PreCompiled.h" diff --git a/src/Mod/Start/Gui/CMakeLists.txt b/src/Mod/Start/Gui/CMakeLists.txt index 6c4f645273..9dce5bd6e8 100644 --- a/src/Mod/Start/Gui/CMakeLists.txt +++ b/src/Mod/Start/Gui/CMakeLists.txt @@ -36,6 +36,12 @@ SET(StartGuiIcon_SVG Resources/icons/StartWorkbench.svg ) +if(FREECAD_USE_PCH) + add_definitions(-D_PreComp_) + GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${StartGui_SRCS}) + ADD_MSVC_PRECOMPILED_HEADER(StartGui PreCompiled.h PreCompiled.cpp PCH_SRCS) +endif(FREECAD_USE_PCH) + add_library(StartGui SHARED ${StartGui_SRCS} ${StartGuiIcon_SVG}) target_link_libraries(StartGui ${StartGui_LIBS}) diff --git a/src/Mod/Start/Gui/PreCompiled.cpp b/src/Mod/Start/Gui/PreCompiled.cpp index 7cd1cae80f..cde4369c5b 100644 --- a/src/Mod/Start/Gui/PreCompiled.cpp +++ b/src/Mod/Start/Gui/PreCompiled.cpp @@ -20,5 +20,4 @@ * * ***************************************************************************/ - #include "PreCompiled.h" diff --git a/src/Mod/Start/Gui/Workbench.cpp b/src/Mod/Start/Gui/Workbench.cpp index 1d3184b028..e21dedf762 100644 --- a/src/Mod/Start/Gui/Workbench.cpp +++ b/src/Mod/Start/Gui/Workbench.cpp @@ -21,7 +21,6 @@ ***************************************************************************/ #include "PreCompiled.h" - #ifndef _PreComp_ # include #endif