use target_include_directories
Signed-off-by: Karsten Knese <karsten@openrobotics.org>
This commit is contained in:
parent
c2bdad5f01
commit
2d84b65ca3
|
|
@ -17,18 +17,17 @@ find_package(Eigen3 REQUIRED)
|
||||||
# TODO(dhood): enable python support once ported to ROS 2
|
# TODO(dhood): enable python support once ported to ROS 2
|
||||||
# catkin_python_setup()
|
# catkin_python_setup()
|
||||||
|
|
||||||
include_directories(include
|
|
||||||
${rclcpp_INCLUDE_DIRS}
|
|
||||||
${sensor_msgs_INCLUDE_DIRS}
|
|
||||||
${tf2_INCLUDE_DIRS}
|
|
||||||
${Eigen3_INCLUDE_DIRS}
|
|
||||||
)
|
|
||||||
|
|
||||||
add_library(laser_geometry SHARED src/laser_geometry.cpp)
|
add_library(laser_geometry SHARED src/laser_geometry.cpp)
|
||||||
target_link_libraries(laser_geometry
|
target_include_directories(laser_geometry
|
||||||
${rclcpp_LIBRARIES}
|
PUBLIC
|
||||||
${sensor_msgs_LIBRARIES}
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
|
||||||
${tf2_LIBRARIES}
|
$<INSTALL_INTERFACE:include>
|
||||||
|
${Eigen3_INCLUDE_DIRS}
|
||||||
|
)
|
||||||
|
ament_target_dependencies(laser_geometry
|
||||||
|
"rclcpp"
|
||||||
|
"sensor_msgs"
|
||||||
|
"tf2"
|
||||||
)
|
)
|
||||||
|
|
||||||
# Causes the visibility macros to use dllexport rather than dllimport,
|
# Causes the visibility macros to use dllexport rather than dllimport,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user