[Robot] App: enable precompiled header

This commit is contained in:
Uwe
2022-12-09 02:44:30 +01:00
parent 3f7ea7bb27
commit 0d92058fb8
3 changed files with 8 additions and 7 deletions

View File

@@ -75,6 +75,12 @@ SET(Robot_SRCS
${Python_SRCS}
)
if(FREECAD_USE_PCH)
add_definitions(-D_PreComp_)
GET_MSVC_PRECOMPILED_SOURCE("PreCompiled.cpp" PCH_SRCS ${Robot_SRCS})
ADD_MSVC_PRECOMPILED_HEADER(Robot PreCompiled.h PreCompiled.cpp PCH_SRCS)
endif(FREECAD_USE_PCH)
# FIXME: The bundled KDL has some extensions which makes it incompatible
# to an installed KDL. To fix the issue two things must be done:
# * revert the changes (and look for an alternative)

View File

@@ -20,5 +20,4 @@
* *
***************************************************************************/
#include "PreCompiled.h"

View File

@@ -38,13 +38,9 @@
#ifdef _PreComp_
// standard
#include <cassert>
#include <iostream>
#include <map>
// STL
#include <memory>
#include <sstream>
#include <string>
#include <vector>
// kdl_cp
#include "kdl_cp/chain.hpp"