Commit daafc32d authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] use exports from Eigen3 & eigenpy

parent daa5360a
......@@ -69,10 +69,10 @@ OPTION(BUILD_PYTHON_INTERFACE "Build the python bindings" ON)
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS})
add_required_dependency("eigen3 >= 3.0.0")
ADD_PROJECT_DEPENDENCY(Eigen3 REQUIRED PKG_CONFIG_REQUIRES "eigen3 >= 3.0.0")
if (BUILD_PYTHON_INTERFACE)
ADD_COMPILE_DEPENDENCY("eigenpy >= 2.2")
ADD_PROJECT_DEPENDENCY(eigenpy 2.2 REQUIRED PKG_CONFIG_REQUIRES "eigenpy >= 2.2")
endif ()
# Add a cache variable to allow not compiling and running tests
......
......@@ -113,7 +113,7 @@ ENDIF()
TARGET_LINK_BOOST_PYTHON(${LIBRARY_NAME} PUBLIC)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} PUBLIC ${PROJECT_NAME} ${BOOST_system_LIBRARY})
PKG_CONFIG_USE_DEPENDENCY(${LIBRARY_NAME} eigenpy)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} PUBLIC eigenpy::eigenpy)
SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES
PREFIX ""
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment