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

6
7
8
9
10
11
12
IF(EIGEN3_VERSION VERSION_GREATER 3.2.90)
  SET(${PROJECT_NAME}_EXAMPLES
    ${${PROJECT_NAME}_EXAMPLES}
    i-inverse-kinematics
    )
ENDIF(EIGEN3_VERSION VERSION_GREATER 3.2.90)

13
14
15
FOREACH(EXAMPLE ${${PROJECT_NAME}_EXAMPLES})
  ADD_UNIT_TEST("example-${EXAMPLE}" ${EXAMPLE})
  PKG_CONFIG_USE_DEPENDENCY("example-${EXAMPLE}" eigen3)
16
17
18
  IF(HPP_FCL_FOUND)
    PKG_CONFIG_USE_DEPENDENCY("example-${EXAMPLE}" hpp-fcl)
  ENDIF(HPP_FCL_FOUND)
19
ENDFOREACH(EXAMPLE ${${PROJECT_NAME}_EXAMPLES})
20

21
22
23
24
25
26
27
28
29
30
31
IF(BUILD_PYTHON_INTERFACE)
  SET(${PROJECT_NAME}_PYTHON_EXAMPLES
    i-inverse-kinematics
    overview-simple
    #overview-urdf
    )

  FOREACH(EXAMPLE ${${PROJECT_NAME}_PYTHON_EXAMPLES})
    ADD_PYTHON_UNIT_TEST("py-example-${EXAMPLE}" "examples/${EXAMPLE}.py" "bindings/python")
  ENDFOREACH(EXAMPLE ${${PROJECT_NAME}_PYTHON_EXAMPLES})
ENDIF(BUILD_PYTHON_INTERFACE)