Skip to content

Commit

Permalink
make linters happy
Browse files Browse the repository at this point in the history
Signed-off-by: Alejandro Hernández Cordero <[email protected]>
  • Loading branch information
ahcorde committed Jun 28, 2024
1 parent dbe5f4e commit 4cc1003
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
18 changes: 11 additions & 7 deletions plugin_template/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# TODO (YourNameHere): This is not a working CMake Project!
# TODO (YourNameHere): This is not a working CMake Project!
# Some assembly required for your plugin. (-:

cmake_minimum_required(VERSION 3.10.2)
Expand All @@ -15,13 +15,15 @@ find_package(rclcpp REQUIRED)
# TODO (YourNameHere): You might need more dependencies

set(dependencies
pluginlib
point_cloud_interfaces
point_cloud_transport
rclcpp
pluginlib::pluginlib
${point_cloud_interfaces_TARGETS}
point_cloud_transport::point_cloud_transport
rclcpp::rclcpp
)

include_directories(include)
target_include_directories(${PROJECT_NAME} PRIVATE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>")

add_library(${PROJECT_NAME}
SHARED
Expand All @@ -31,7 +33,9 @@ add_library(${PROJECT_NAME}
src/template_subscriber.cpp
)

ament_target_dependencies(${PROJECT_NAME} ${dependencies})
target_link_libraries(${PROJECT_NAME} PRIVATE
${dependencies}
)

install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION lib
Expand Down
1 change: 0 additions & 1 deletion zstd_point_cloud_transport/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ target_link_libraries(${PROJECT_NAME} PRIVATE
target_include_directories(${PROJECT_NAME} PRIVATE
"$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>"
"$<INSTALL_INTERFACE:include/${PROJECT_NAME}>")
ament_target_dependencies(${PROJECT_NAME} )

install(TARGETS ${PROJECT_NAME}
ARCHIVE DESTINATION lib
Expand Down

0 comments on commit 4cc1003

Please sign in to comment.