Build statically but position independent code
- This is necessary to link against shared libraries on Linux
This commit is contained in:
parent
8fb9c51bf8
commit
c6c6e833fe
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user