[Start] Gui: enable precompiled headers
- also some whitespace changes
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -20,5 +20,4 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
@@ -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})
|
||||
|
||||
|
||||
@@ -20,5 +20,4 @@
|
||||
* *
|
||||
***************************************************************************/
|
||||
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
@@ -21,7 +21,6 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <QCoreApplication>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user