Skip to content

Commit

Permalink
Install includes to include/ (#83)
Browse files Browse the repository at this point in the history
Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
  • Loading branch information
sloretz authored Jan 11, 2022
1 parent aa774fe commit 5ce2eba
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions ament_index_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ add_library(${PROJECT_NAME}
target_compile_definitions(${PROJECT_NAME} PRIVATE "AMENT_INDEX_CPP_BUILDING_DLL")
target_include_directories(${PROJECT_NAME} PUBLIC
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include>")
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>")

ament_export_targets(export_${PROJECT_NAME} HAS_LIBRARY_TARGET)

Expand All @@ -48,8 +48,7 @@ endif()

ament_package()

install(DIRECTORY include/
DESTINATION include)
install(DIRECTORY include/ DESTINATION include/${PROJECT_NAME})

install(TARGETS ${PROJECT_NAME}
EXPORT export_${PROJECT_NAME}
Expand Down

0 comments on commit 5ce2eba

Please sign in to comment.