[Start] Gui: enable precompiled headers
- also some whitespace changes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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