Skip to content

Commit

Permalink
fix: link fcl hpp manually
Browse files Browse the repository at this point in the history
  • Loading branch information
domire8 authored Mar 12, 2024
1 parent 0e3de7e commit d581742
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/robot_model/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
set(LIBRARY_NAME robot_model)

set(PINOCCHIO_VERSION 2.9.0)
set(FCL_HPP_VERSION 1.8.1)
set(OSQP_EIGEN_VERSION 0.8.1)
find_package(pinocchio ${PINOCCHIO_VERSION} REQUIRED)
find_package(fcl-hpp ${FCL_HPP_VERSION} REQUIRED)
find_package(OsqpEigen ${OSQP_EIGEN_VERSION} REQUIRED)

add_definitions(-DPINOCCHIO_WITH_HPP_FCL)
Expand All @@ -24,6 +26,7 @@ target_include_directories(${LIBRARY_NAME}
target_link_libraries(${LIBRARY_NAME}
state_representation
${PINOCCHIO_LIBRARIES}
${fcl-hpp_LIBRARIES}
OsqpEigen::OsqpEigen
)
target_compile_definitions(${LIBRARY_NAME} PUBLIC -DPINOCCHIO_WITH_HPP_FCL)
Expand Down

0 comments on commit d581742

Please sign in to comment.