Skip to content

Commit

Permalink
Re-install test plugin libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-reynolds committed Jan 11, 2020
1 parent b3654b3 commit 2db99f3
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 10 deletions.
23 changes: 18 additions & 5 deletions combined_robot_hw_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ if(CATKIN_ENABLE_TESTING)
# Specify header include paths
include_directories(include ${catkin_INCLUDE_DIRS})

add_library(${PROJECT_NAME} EXCLUDE_FROM_ALL
add_library(${PROJECT_NAME}
src/my_robot_hw_1.cpp
src/my_robot_hw_2.cpp
src/my_robot_hw_3.cpp
Expand Down Expand Up @@ -57,7 +57,20 @@ endif()
## Install ##
#############

# Install plugins
install(FILES test_robot_hw_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
# NOTE: Libraries and plugins required for tests are installed since CI
# runs tests out of the install space rather than the devel space

if(CATKIN_ENABLE_TESTING)

# Install targets
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)

# Install plugins
install(FILES test_robot_hw_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
endif()
23 changes: 18 additions & 5 deletions controller_manager_tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if(CATKIN_ENABLE_TESTING)
# Specify header include paths
include_directories(include ${catkin_INCLUDE_DIRS})

add_library(${PROJECT_NAME} EXCLUDE_FROM_ALL
add_library(${PROJECT_NAME}
src/effort_test_controller.cpp
src/extensible_controllers.cpp
src/my_dummy_controller.cpp
Expand Down Expand Up @@ -56,7 +56,20 @@ endif()
## Install ##
#############

# Install plugins
install(FILES test_controllers_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
# NOTE: Libraries and plugins required for tests are installed since CI
# runs tests out of the install space rather than the devel space

if(CATKIN_ENABLE_TESTING)

# Install targets
install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
)

# Install plugins
install(FILES test_controllers_plugin.xml
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}
)
endif()

0 comments on commit 2db99f3

Please # to comment.