Skip to content

Commit

Permalink
Fix cpack build
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jan 14, 2025
1 parent 66b76af commit 2a7e02c
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tesseract_collision/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,8 @@ endif()

# Examples
if((TESSERACT_ENABLE_EXAMPLES OR TESSERACT_COLLISION_ENABLE_EXAMPLES) AND TESSERACT_BUILD_FCL)
message("Building examples components")
list(APPEND SUPPORTED_COMPONENTS examples)
add_subdirectory(examples)
endif()

Expand Down
14 changes: 13 additions & 1 deletion tesseract_collision/examples/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,16 @@ target_cxx_version(${PROJECT_NAME}_box_box_example PRIVATE VERSION ${TESSERACT_C
target_clang_tidy(${PROJECT_NAME}_box_box_example ENABLE ${TESSERACT_ENABLE_CLANG_TIDY})
target_compile_definitions(${PROJECT_NAME}_box_box_example PRIVATE DATA_DIR="${CMAKE_SOURCE_DIR}/test")

install(TARGETS ${PROJECT_NAME}_box_box_example DESTINATION bin)
configure_component(
COMPONENT examples
NAMESPACE tesseract
TARGETS ${PROJECT_NAME}_box_box_example
DEPENDENCIES "tesseract_collision COMPONENTS core bullet fcl")

if(TESSERACT_PACKAGE)
cpack_component(
COMPONENT examples
VERSION ${pkg_extracted_version}
DESCRIPTION "Tesseract Collision Examples components"
COMPONENT_DEPENDS core bullet fcl)
endif()
1 change: 1 addition & 0 deletions tesseract_collision/test_suite/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ target_include_directories(
install(
DIRECTORY include/${PROJECT_NAME}
DESTINATION include
COMPONENT test_suite
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
Expand Down
1 change: 1 addition & 0 deletions tesseract_collision/vhacd/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ endif()
install(
DIRECTORY include/${PROJECT_NAME}
DESTINATION include
COMPONENT vhacd
FILES_MATCHING
PATTERN "*.h"
PATTERN "*.hpp"
Expand Down

0 comments on commit 2a7e02c

Please sign in to comment.