Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not export plugin libraries #1028

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading