Verified Commit 7dc0d732 authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake: make optional heavy test like multiprecision

parent 8e32ef51
......@@ -54,6 +54,8 @@ IF(DEFINED BUILD_UNIT_TESTS)
SET(BUILD_TESTING ${BUILD_UNIT_TESTS})
ENDIF(DEFINED BUILD_UNIT_TESTS)
OPTION(BUILD_ADVANCED_TESTING "Build the advanced tests (multiprecision, etc.) of Pinocchio" OFF)
# --- OPTIONAL DEPENDENCIES -------------------------
OPTION(BUILD_WITH_URDF_SUPPORT "Build the library with the URDF format support" ON)
OPTION(BUILD_WITH_COLLISION_SUPPORT "Build the library with the Collision support (required HPP-FCL)" OFF)
......
......@@ -34,6 +34,12 @@ SET(${PROJECT_NAME}_EXAMPLES
multiprecision
)
IF(BUILD_ADVANCED_TESTING)
LIST(APPEND ${PROJECT_NAME}_EXAMPLES
multiprecision
)
ENDIF(BUILD_ADVANCED_TESTING)
IF(HPP_FCL_FOUND)
LIST(APPEND ${PROJECT_NAME}_EXAMPLES
collisions
......
......@@ -122,7 +122,9 @@ ADD_PINOCCHIO_UNIT_TEST(center-of-mass-derivatives)
ADD_PINOCCHIO_UNIT_TEST(contact-dynamics-derivatives)
# Multiprecision arithmetic
ADD_PINOCCHIO_UNIT_TEST(multiprecision)
IF(BUILD_ADVANCED_TESTING)
ADD_PINOCCHIO_UNIT_TEST(multiprecision)
ENDIF(BUILD_ADVANCED_TESTING)
# Automatic differentiation
IF(BUILD_WITH_AUTODIFF_SUPPORT)
......
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