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) ...@@ -69,10 +69,10 @@ OPTION(BUILD_PYTHON_INTERFACE "Build the python bindings" ON)
COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX) COMPUTE_PROJECT_ARGS(PROJECT_ARGS LANGUAGES CXX)
PROJECT(${PROJECT_NAME} ${PROJECT_ARGS}) 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) if (BUILD_PYTHON_INTERFACE)
ADD_COMPILE_DEPENDENCY("eigenpy >= 2.2") ADD_PROJECT_DEPENDENCY(eigenpy 2.2 REQUIRED PKG_CONFIG_REQUIRES "eigenpy >= 2.2")
endif () endif ()
# Add a cache variable to allow not compiling and running tests # Add a cache variable to allow not compiling and running tests
......
...@@ -113,7 +113,7 @@ ENDIF() ...@@ -113,7 +113,7 @@ ENDIF()
TARGET_LINK_BOOST_PYTHON(${LIBRARY_NAME} PUBLIC) TARGET_LINK_BOOST_PYTHON(${LIBRARY_NAME} PUBLIC)
TARGET_LINK_LIBRARIES(${LIBRARY_NAME} PUBLIC ${PROJECT_NAME} ${BOOST_system_LIBRARY}) 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 SET_TARGET_PROPERTIES(${LIBRARY_NAME} PROPERTIES
PREFIX "" PREFIX ""
...@@ -131,7 +131,7 @@ ENDIF() ...@@ -131,7 +131,7 @@ ENDIF()
INSTALL(TARGETS ${LIBRARY_NAME} INSTALL(TARGETS ${LIBRARY_NAME}
DESTINATION ${${LIBRARY_NAME}_INSTALL_DIR}) DESTINATION ${${LIBRARY_NAME}_INSTALL_DIR})
# --- INSTALL SCRIPTS # --- INSTALL SCRIPTS
SET(PYTHON_FILES SET(PYTHON_FILES
__init__.py __init__.py
) )
......
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