File tree 4 files changed +42
-8
lines changed 4 files changed +42
-8
lines changed Original file line number Diff line number Diff line change @@ -409,8 +409,17 @@ function(create_library)
409
409
if (BUILD_WITH_OPENMP_SUPPORT)
410
410
target_link_libraries (${PROJECT_NAME} PUBLIC OpenMP::OpenMP_CXX)
411
411
endif ()
412
- target_link_libraries (${PROJECT_NAME} PUBLIC proxsuite-nlp::proxsuite-nlp)
413
- target_link_libraries (${PROJECT_NAME} PUBLIC fmt::fmt)
412
+ target_link_libraries (
413
+ ${PROJECT_NAME}
414
+ PUBLIC proxsuite-nlp::proxsuite-nlp fmt::fmt
415
+ )
416
+ target_precompile_headers(
417
+ ${PROJECT_NAME}
418
+ PRIVATE
419
+ <Eigen/Dense>
420
+ include /aligator/pinocchio-algorithm.pch.h
421
+ include /aligator/pinocchio-multibody.pch.h
422
+ )
414
423
# set the install-tree include dirs
415
424
# used by dependent projects to consume this target
416
425
target_include_directories (
Original file line number Diff line number Diff line change @@ -53,16 +53,14 @@ function(make_bindings)
53
53
# deprecated functions are exposed up until they are removed. remove warnings.
54
54
target_compile_options (${PYLIB_NAME} PRIVATE "-Wno-deprecated-declarations" )
55
55
target_compile_definitions (${PYLIB_NAME} PRIVATE MODULE_NAME=${PYLIB_NAME} )
56
- target_include_directories (
57
- ${PYLIB_NAME}
58
- PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
59
- )
60
-
61
56
target_link_libraries (${PYLIB_NAME} PUBLIC ${PROJECT_NAME} eigenpy::eigenpy)
62
57
target_include_directories (
63
58
${PYLIB_NAME}
64
- PUBLIC $<TARGET_PROPERTY:proxsuite-nlp::pyproxsuite_nlp,INCLUDE_DIRECTORIES >
59
+ PUBLIC
60
+ $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR} /include >
61
+ $<TARGET_PROPERTY:proxsuite-nlp::pyproxsuite_nlp,INCLUDE_DIRECTORIES >
65
62
)
63
+ target_precompile_headers(${PYLIB_NAME} REUSE_FROM ${PROJECT_NAME} )
66
64
67
65
if (BUILD_CROCODDYL_COMPAT)
68
66
target_link_libraries (${PYLIB_NAME} PUBLIC aligator::croc_compat)
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include <pinocchio/algorithm/aba.hpp>
4
+ #include <pinocchio/algorithm/aba-derivatives.hpp>
5
+
6
+ #include <pinocchio/algorithm/center-of-mass.hpp>
7
+ #include <pinocchio/algorithm/center-of-mass-derivatives.hpp>
8
+
9
+ #include <pinocchio/algorithm/centroidal.hpp>
10
+ #include <pinocchio/algorithm/centroidal-derivatives.hpp>
11
+
12
+ #include <pinocchio/algorithm/constrained-dynamics.hpp>
13
+ #include <pinocchio/algorithm/constrained-dynamics-derivatives.hpp>
14
+ #include <pinocchio/algorithm/contact-jacobian.hpp>
15
+
16
+ #include <pinocchio/algorithm/frames.hpp>
17
+ #include <pinocchio/algorithm/frames-derivatives.hpp>
18
+
19
+ #include <pinocchio/algorithm/joint-configuration.hpp>
20
+
21
+ #include <pinocchio/algorithm/rnea.hpp>
22
+ #include <pinocchio/algorithm/rnea-derivatives.hpp>
Original file line number Diff line number Diff line change
1
+ #pragma once
2
+
3
+ #include <pinocchio/multibody/data.hpp>
4
+ #include <pinocchio/multibody/model.hpp>
5
+ #include <pinocchio/multibody/geometry.hpp>
You can’t perform that action at this time.
0 commit comments