diff --git a/CMakeLists.txt b/CMakeLists.txt index e96c438..06c4f24 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -26,13 +26,15 @@ include_directories(include ) add_library(laser_geometry src/laser_geometry.cpp) -target_link_libraries(laser_geometry +target_link_libraries(laser_geometry ${angles_LIBRARIES} ${rclcpp_LIBRARIES} ${sensor_msgs_LIBRARIES} ${tf2_LIBRARIES} ) +set_property(TARGET laser_geometry PROPERTY POSITION_INDEPENDENT_CODE ON) + ament_export_include_directories(include) ament_export_interfaces(laser_geometry) ament_export_libraries(laser_geometry)