Skip to content

Commit dbb3909

Browse files
wxmerktjcarpent
authored andcommitted
Register package in ament index
1 parent 6eb3b13 commit dbb3909

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,9 @@ ADD_SOURCE_GROUP(${PROJECT_NAME}_SOURCES)
230230

231231
# Install package for ROS
232232
install(FILES package.xml DESTINATION share/eigenpy)
233+
# Allows Colcon to find non-Ament packages when using workspace underlays
234+
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} "")
235+
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/share/ament_index/resource_index/packages/${PROJECT_NAME} DESTINATION share/ament_index/resource_index/packages)
233236

234237
# ----------------------------------------------------
235238
# --- PYTHON LIBRARY ---------------------------------

0 commit comments

Comments
 (0)