Skip to content

Commit

Permalink
Do not export plugin libraries (#1028)
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong authored Jul 18, 2024
1 parent 25bad01 commit 1239d19
Show file tree
Hide file tree
Showing 5 changed files with 47 additions and 5 deletions.
11 changes: 10 additions & 1 deletion tesseract_collision/bullet/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -118,16 +118,25 @@ set(CONTACT_MANAGERS_PLUGINS ${CONTACT_MANAGERS_PLUGINS} "${PROJECT_NAME}_bullet
install(
DIRECTORY include/${PROJECT_NAME}
DESTINATION include
COMPONENT bullet
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
PATTERN "*.inl"
PATTERN ".svn" EXCLUDE)

# Plugin should not be export only installed
install(
TARGETS ${PROJECT_NAME}_bullet_factories
COMPONENT bullet
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

configure_component(
COMPONENT bullet
NAMESPACE tesseract
TARGETS ${PROJECT_NAME}_bullet ${PROJECT_NAME}_bullet_factories
TARGETS ${PROJECT_NAME}_bullet
DEPENDENCIES "tesseract_collision COMPONENTS core"
CFG_EXTRAS cmake/bullet-extras.cmake)

Expand Down
11 changes: 10 additions & 1 deletion tesseract_collision/fcl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -48,16 +48,25 @@ set(CONTACT_MANAGERS_PLUGINS ${CONTACT_MANAGERS_PLUGINS} "${PROJECT_NAME}_fcl_fa
install(
DIRECTORY include/${PROJECT_NAME}
DESTINATION include
COMPONENT fcl
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
PATTERN "*.inl"
PATTERN ".svn" EXCLUDE)

# Plugin should not be export only installed
install(
TARGETS ${PROJECT_NAME}_fcl_factories
COMPONENT fcl
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

configure_component(
COMPONENT fcl
NAMESPACE tesseract
TARGETS ${PROJECT_NAME}_fcl ${PROJECT_NAME}_fcl_factories
TARGETS ${PROJECT_NAME}_fcl
DEPENDENCIES "tesseract_collision COMPONENTS core" "fcl 0.6")

if(TESSERACT_PACKAGE)
Expand Down
10 changes: 9 additions & 1 deletion tesseract_kinematics/kdl/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,18 @@ install(
PATTERN "*.h"
PATTERN "*.hpp")

# Plugin should not be export only installed
install(
TARGETS ${PROJECT_NAME}_kdl_factories
COMPONENT kdl
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

configure_component(
COMPONENT kdl
NAMESPACE tesseract
TARGETS ${PROJECT_NAME}_kdl ${PROJECT_NAME}_kdl_factories
TARGETS ${PROJECT_NAME}_kdl
DEPENDENCIES orocos_kdl "tesseract_kinematics COMPONENTS core")

if(TESSERACT_PACKAGE)
Expand Down
10 changes: 9 additions & 1 deletion tesseract_kinematics/opw/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,18 @@ install(
PATTERN "*.h"
PATTERN "*.hpp")

# Plugin should not be export only installed
install(
TARGETS ${PROJECT_NAME}_opw_factory
COMPONENT opw
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

configure_component(
COMPONENT opw
NAMESPACE tesseract
TARGETS ${PROJECT_NAME}_opw ${PROJECT_NAME}_opw_factory
TARGETS ${PROJECT_NAME}_opw
DEPENDENCIES opw_kinematics "tesseract_kinematics COMPONENTS core")

if(TESSERACT_PACKAGE)
Expand Down
10 changes: 9 additions & 1 deletion tesseract_kinematics/ur/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,18 @@ install(
PATTERN "*.h"
PATTERN "*.hpp")

# Plugin should not be export only installed
install(
TARGETS ${PROJECT_NAME}_ur_factory
COMPONENT ur
RUNTIME DESTINATION bin
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib)

configure_component(
COMPONENT ur
NAMESPACE tesseract
TARGETS ${PROJECT_NAME}_ur ${PROJECT_NAME}_ur_factory
TARGETS ${PROJECT_NAME}_ur
DEPENDENCIES "tesseract_kinematics COMPONENTS core")

if(TESSERACT_PACKAGE)
Expand Down

0 comments on commit 1239d19

Please sign in to comment.