Build dynamically using visibility control

This commit is contained in:
Martin Idel
2018-03-27 09:13:34 +02:00
parent 2ae4771b7b
commit b23632b018
2 changed files with 5 additions and 4 deletions

View File

@@ -23,15 +23,13 @@ include_directories(include
${EIGEN3_INCLUDE_DIR}
)
add_library(laser_geometry src/laser_geometry.cpp)
add_library(laser_geometry SHARED src/laser_geometry.cpp)
target_link_libraries(laser_geometry
${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)