CMakeLists.txt 721 Bytes
Newer Older
1
SET(${PROJECT_NAME}_EXAMPLES
2
3
  i-inverse-kinematics
  overview-simple
4
  #overview-urdf
5
6
  )

7
8
9
10
11
12
13
14
FOREACH(EXAMPLE ${${PROJECT_NAME}_EXAMPLES})
  IF(BUILD_PYTHON_INTERFACE)
    ADD_PYTHON_UNIT_TEST("py-example-${EXAMPLE}" "examples/${EXAMPLE}.py" "bindings/python")
  ENDIF(BUILD_PYTHON_INTERFACE)
  ADD_UNIT_TEST("example-${EXAMPLE}" ${EXAMPLE})
  PKG_CONFIG_USE_DEPENDENCY("example-${EXAMPLE}" eigen3)
  PKG_CONFIG_USE_DEPENDENCY("example-${EXAMPLE}" hpp-fcl)
ENDFOREACH(EXAMPLE ${${PROJECT_NAME}_EXAMPLES})
15
16
17
18
19
20

IF(EIGEN3_VERSION VERSION_LESS 3.2.90)
  # Eigen bdcSvd is available only since 3.3
  SET_TARGET_PROPERTIES(example-i-inverse-kinematics
    PROPERTIES EXCLUDE_FROM_ALL TRUE)
ENDIF(EIGEN3_VERSION VERSION_LESS 3.2.90)