Skip to content

Commit

Permalink
cmake: Try to use pre compiled header to accelerate the build
Browse files Browse the repository at this point in the history
  • Loading branch information
jorisv committed Nov 12, 2024
1 parent 57bd452 commit 87809cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bindings/python/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ if(BUILD_PYTHON_INTERFACE)
set(PINOCCHIO_PYTHON_INSTALL_DIR ${ABSOLUTE_PYTHON_SITELIB}/${PROJECT_NAME})

pinocchio_python_bindings_specific_type(default)
target_precompile_headers(${PYWRAP}_default PUBLIC
${PROJECT_SOURCE_DIR}/include/pinocchio/bindings/python/pch.hpp)
set(PYTHON_LIB_NAME "${PYWRAP}_default")
set(STUBGEN_DEPENDENCIES "${PYWRAP}_default")

Expand Down
8 changes: 8 additions & 0 deletions include/pinocchio/bindings/python/pch.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#include "pinocchio/container/boost-container-limits.hpp"
#include <eigenpy/eigenpy.hpp>
#include <boost/python.hpp>
#include <boost/variant.hpp>
#include <Eigen/Core>
#include <Eigen/Sparse>
#include <Eigen/Geometry>
#include <unsupported/Eigen/CXX11/Tensor>

0 comments on commit 87809cd

Please sign in to comment.