Skip to content

Commit

Permalink
Upgrade ros_industrial_cmake_boilerplate to version 0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Levi-Armstrong committed Jun 11, 2024
1 parent 066421d commit a67ff1e
Show file tree
Hide file tree
Showing 18 changed files with 84 additions and 1 deletion.
9 changes: 8 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ endif()
option(BUILD_RENDERING "Build the rendering module" ON)
option(BUILD_STUDIO "Build the studio module" ON)

set(PROJECT_TARGETS)

add_subdirectory(common)
add_subdirectory(acm)
add_subdirectory(collision)
Expand Down Expand Up @@ -65,4 +67,9 @@ endif()
install(FILES "${CMAKE_CURRENT_LIST_DIR}/cmake/FindQwt.cmake" "${CMAKE_CURRENT_LIST_DIR}/cmake/FindGraphviz.cmake"
DESTINATION lib/cmake/${PROJECT_NAME})

configure_package(NAMESPACE tesseract DEPENDENCIES ${DEPS} CFG_EXTRAS cmake/tesseract_qt-extras.cmake)
configure_package(
SKIP_INSTALL_TARGETS
NAMESPACE tesseract
TARGETS ${PROJECT_TARGETS}
DEPENDENCIES ${DEPS}
CFG_EXTRAS cmake/tesseract_qt-extras.cmake)
6 changes: 6 additions & 0 deletions acm/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_acm_models
${PROJECT_NAME}_acm_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_acm_models ${PROJECT_NAME}_acm_widgets)
6 changes: 6 additions & 0 deletions collision/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,10 @@ target_include_directories(
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_collision_models
${PROJECT_NAME}_collision_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_collision_models ${PROJECT_NAME}_collision_widgets)
6 changes: 6 additions & 0 deletions command_language/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_command_language_models
${PROJECT_NAME}_command_language_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_command_language_models ${PROJECT_NAME}_command_language_widgets)
2 changes: 2 additions & 0 deletions common/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -146,4 +146,6 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(APPEND PROJECT_TARGETS ${PROJECT_NAME}_common)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_common)
6 changes: 6 additions & 0 deletions environment/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_environment_models
${PROJECT_NAME}_environment_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_environment_models ${PROJECT_NAME}_environment_widgets)
2 changes: 2 additions & 0 deletions joint_state_slider/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(APPEND PROJECT_TARGETS ${PROJECT_NAME}_joint_state_slider)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_joint_state_slider)
6 changes: 6 additions & 0 deletions joint_trajectory/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -64,4 +64,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_joint_trajectory_models
${PROJECT_NAME}_joint_trajectory_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_joint_trajectory_models ${PROJECT_NAME}_joint_trajectory_widgets)
6 changes: 6 additions & 0 deletions kinematic_groups/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_kinematic_groups_models
${PROJECT_NAME}_kinematic_groups_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_kinematic_groups_models ${PROJECT_NAME}_kinematic_groups_widgets)
2 changes: 2 additions & 0 deletions manipulation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ target_include_directories(
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(APPEND PROJECT_TARGETS ${PROJECT_NAME}_manipulation_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_manipulation_widgets)
2 changes: 2 additions & 0 deletions planning/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,6 @@ target_include_directories(
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(APPEND PROJECT_TARGETS ${PROJECT_NAME}_planning)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_planning)
2 changes: 2 additions & 0 deletions plot/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,6 @@ add_subdirectory(demo)
# Mark cpp header files for installation
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

list(APPEND PROJECT_TARGETS ${PROJECT_NAME}_plot)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_plot)
6 changes: 6 additions & 0 deletions rendering/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,4 +70,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_gazebo_utils
${PROJECT_NAME}_render_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_gazebo_utils ${PROJECT_NAME}_render_widgets)
6 changes: 6 additions & 0 deletions scene_graph/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_scene_graph_models
${PROJECT_NAME}_scene_graph_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_scene_graph_models ${PROJECT_NAME}_scene_graph_widgets)
2 changes: 2 additions & 0 deletions srdf/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,6 @@ endif()
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(APPEND PROJECT_TARGETS ${SRDF_TARGETS})
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${SRDF_TARGETS})
8 changes: 8 additions & 0 deletions studio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,14 @@ foreach(dir config)
endforeach()

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_studio
${PROJECT_NAME}_studio_widgets
${PROJECT_NAME}_studio_plugin_factory
${PROJECT_NAME}_studio_plugins)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(
TARGETS
${PROJECT_NAME}_studio
Expand Down
6 changes: 6 additions & 0 deletions tool_path/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,10 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(
APPEND
PROJECT_TARGETS
${PROJECT_NAME}_tool_path_models
${PROJECT_NAME}_tool_path_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_tool_path_models ${PROJECT_NAME}_tool_path_widgets)
2 changes: 2 additions & 0 deletions workbench/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,6 @@ add_subdirectory(demo)
install(DIRECTORY include/${PROJECT_NAME} DESTINATION include)

# Install
list(APPEND PROJECT_TARGETS ${PROJECT_NAME}_workbench_widgets)
set(PROJECT_TARGETS ${PROJECT_TARGETS} PARENT_SCOPE)
install_targets(TARGETS ${PROJECT_NAME}_workbench_widgets)

0 comments on commit a67ff1e

Please sign in to comment.