[Spread] App: enable precompiled headers
This commit is contained in:
@@ -19,6 +19,8 @@ set(Spreadsheet_SRCS
|
||||
Cell.cpp
|
||||
Cell.h
|
||||
DisplayUnit.h
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
PropertySheet.cpp
|
||||
PropertySheet.h
|
||||
PropertySheetPy.xml
|
||||
@@ -31,8 +33,6 @@ set(Spreadsheet_SRCS
|
||||
PropertyRowHeights.h
|
||||
PropertyRowHeightsPy.xml
|
||||
PropertyRowHeightsPyImp.cpp
|
||||
PreCompiled.cpp
|
||||
PreCompiled.h
|
||||
Sheet.cpp
|
||||
Sheet.h
|
||||
SheetPy.xml
|
||||
@@ -49,6 +49,12 @@ generate_from_xml(PropertySheetPy)
|
||||
generate_from_xml(PropertyColumnWidthsPy)
|
||||
generate_from_xml(PropertyRowHeightsPy)
|
||||
|
||||
if(FREECAD_USE_PCH)
|
||||
add_definitions(-D_PreComp_)
|
||||
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${Spreadsheet_SRCS})
|
||||
ADD_MSVC_PRECOMPILED_HEADER(Spreadsheet PreCompiled.h PreCompiled.cpp PCH_SRCS)
|
||||
endif(FREECAD_USE_PCH)
|
||||
|
||||
add_library(Spreadsheet SHARED ${Spreadsheet_SRCS})
|
||||
target_link_libraries(Spreadsheet ${Spreadsheet_LIBS})
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
#ifdef _PreComp_
|
||||
|
||||
// STL
|
||||
#include <algorithm>
|
||||
#include <deque>
|
||||
#include <map>
|
||||
#include <memory>
|
||||
@@ -51,13 +52,16 @@
|
||||
#include <boost/range/adaptor/map.hpp>
|
||||
#include <boost/range/algorithm/copy.hpp>
|
||||
|
||||
#ifdef FC_OS_WIN32
|
||||
# include <windows.h>
|
||||
#endif
|
||||
|
||||
// Qt
|
||||
#include <QLocale>
|
||||
|
||||
#endif //_PreComp_
|
||||
#elif defined(FC_OS_WIN32)
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#ifndef NOMINMAX
|
||||
# define NOMINMAX
|
||||
#endif
|
||||
#include <Windows.h>
|
||||
#include <io.h>
|
||||
#endif//_PreComp_
|
||||
|
||||
#endif // SPREADSHEET_PRECOMPILED_H
|
||||
|
||||
@@ -21,8 +21,9 @@
|
||||
***************************************************************************/
|
||||
|
||||
#include "PreCompiled.h"
|
||||
|
||||
#ifndef _PreComp_
|
||||
# include <algorithm>
|
||||
|
||||
# include <boost/regex.hpp>
|
||||
# include <boost/range/adaptor/map.hpp>
|
||||
# include <boost/range/algorithm/copy.hpp>
|
||||
|
||||
Reference in New Issue
Block a user