Skip to content
Snippets Groups Projects
Commit 8f65cc5e authored by Guilhem Saurel's avatar Guilhem Saurel
Browse files

[CMake] CURVES_WITH_PINOCCHIO_SUPPORT automaticaly computed, fix #21

While here, add it to the .pc
parent 96243337
No related branches found
No related tags found
No related merge requests found
...@@ -19,12 +19,15 @@ CMAKE_POLICY(SET CMP0048 OLD) ...@@ -19,12 +19,15 @@ CMAKE_POLICY(SET CMP0048 OLD)
PROJECT(${PROJECT_NAME} CXX) PROJECT(${PROJECT_NAME} CXX)
ADD_REQUIRED_DEPENDENCY(eigen3) ADD_REQUIRED_DEPENDENCY(eigen3)
OPTION(CURVES_WITH_PINOCCHIO_SUPPORT "Build with pinocchio support" OFF) ADD_OPTIONAL_DEPENDENCY(pinocchio)
OPTION(CURVES_WITH_PINOCCHIO_SUPPORT "Build with pinocchio support" ${PINOCCHIO_FOUND})
IF(CURVES_WITH_PINOCCHIO_SUPPORT) IF(CURVES_WITH_PINOCCHIO_SUPPORT)
ADD_REQUIRED_DEPENDENCY(pinocchio) IF(NOT PINOCCHIO_FOUND)
MESSAGE(FATAL_ERROR "CURVES_WITH_PINOCCHIO_SUPPORT selected, but pinocchio has not been found")
ENDIF(NOT PINOCCHIO_FOUND)
PKG_CONFIG_APPEND_CFLAGS("-DCURVES_WITH_PINOCCHIO_SUPPORT")
ENDIF(CURVES_WITH_PINOCCHIO_SUPPORT) ENDIF(CURVES_WITH_PINOCCHIO_SUPPORT)
SET(BOOST_COMPONENTS unit_test_framework serialization) SET(BOOST_COMPONENTS unit_test_framework serialization)
OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON) OPTION (BUILD_PYTHON_INTERFACE "Build the python binding" ON)
......
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