Skip to content
Snippets Groups Projects
Commit 1b3234a0 authored by Fabian Reister's avatar Fabian Reister
Browse files

rbdl: using eigen target instead of cmake variable

parent a6061147
No related branches found
No related tags found
1 merge request!111Feature/geometric planning
......@@ -159,7 +159,7 @@ ENDIF (RBDL_BUILD_STATIC)
# Find and use the system's Eigen3 library
FIND_PACKAGE (Eigen3 REQUIRED)
target_include_directories(rbdl SYSTEM PUBLIC ${Eigen3_INCLUDE_DIR})
target_link_libraries(rbdl PUBLIC Eigen3::Eigen)
IF (RBDL_STORE_VERSION)
# Set versioning information that can be queried during runtime
......
......@@ -11,7 +11,7 @@ FIND_PACKAGE (RBDL REQUIRED)
FIND_PACKAGE (Eigen3 3.0.0 REQUIRED)
# Add the include directory to the include paths
INCLUDE_DIRECTORIES ( ${RBDL_INCLUDE_DIR} ${EIGEN3_INCLUDE_DIR} )
target_link_libraries(rbdl PUBLIC Eigen3::Eigen)
# Create an executable
ADD_EXECUTABLE (example example.cc)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment