Commit 57fbdd45 authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] export -DCURVES_WITH_PINOCCHIO_SUPPORT

parent 3f4b4635
......@@ -35,7 +35,6 @@ IF(CURVES_WITH_PINOCCHIO_SUPPORT)
IF(NOT pinocchio_FOUND)
MESSAGE(FATAL_ERROR "CURVES_WITH_PINOCCHIO_SUPPORT selected, but pinocchio has not been found")
ENDIF(NOT pinocchio_FOUND)
ADD_DEFINITIONS(-DCURVES_WITH_PINOCCHIO_SUPPORT)
PKG_CONFIG_APPEND_CFLAGS("-DCURVES_WITH_PINOCCHIO_SUPPORT")
ENDIF(CURVES_WITH_PINOCCHIO_SUPPORT)
SET(PACKAGE_EXTRA_MACROS "SET(CURVES_WITH_PINOCCHIO_SUPPORT ${CURVES_WITH_PINOCCHIO_SUPPORT})")
......@@ -87,6 +86,7 @@ TARGET_INCLUDE_DIRECTORIES(${PROJECT_NAME} INTERFACE $<INSTALL_INTERFACE:include
TARGET_LINK_LIBRARIES(${PROJECT_NAME} INTERFACE Boost::serialization)
IF(CURVES_WITH_PINOCCHIO_SUPPORT)
TARGET_LINK_LIBRARIES(${PROJECT_NAME} INTERFACE pinocchio::pinocchio)
TARGET_COMPILE_DEFINITIONS(${PROJECT_NAME} INTERFACE -DCURVES_WITH_PINOCCHIO_SUPPORT)
ENDIF(CURVES_WITH_PINOCCHIO_SUPPORT)
IF(NOT INSTALL_PYTHON_INTERFACE_ONLY)
......
Markdown is supported
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