Verified Commit 0f0a4a9d authored by Justin Carpentier's avatar Justin Carpentier
Browse files

cmake/examples: improve packaging

parent 2d1f1467
......@@ -22,7 +22,11 @@ ENDIF(EIGEN3_VERSION VERSION_GREATER 3.2.90)
FOREACH(EXAMPLE ${${PROJECT_NAME}_EXAMPLES})
SET(EXAMPLE_NAME "example-${EXAMPLE}")
ADD_UNIT_TEST(${EXAMPLE_NAME} ${EXAMPLE})
TARGET_LINK_LIBRARIES(${EXAMPLE_NAME} ${PROJECT_NAME})
PKG_CONFIG_USE_DEPENDENCY(${EXAMPLE_NAME} eigen3)
IF(URDFDOM_FOUND)
PKG_CONFIG_USE_DEPENDENCY(${EXAMPLE_NAME} urdfdom)
ENDIF(URDFDOM_FOUND)
IF(HPP_FCL_FOUND)
PKG_CONFIG_USE_DEPENDENCY(${EXAMPLE_NAME} hpp-fcl)
ENDIF(HPP_FCL_FOUND)
......
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