use find_package to get Boost dependency

This commit is contained in:
Brian Fjeldstad 2018-01-09 12:17:14 -08:00
parent d39ce225c9
commit 0615c3532a

View File

@ -10,6 +10,9 @@ find_package(sensor_msgs REQUIRED)
find_package(tf2 REQUIRED)
find_package(ecl_eigen REQUIRED)
set(Boost_USE_STATIC_LIBS ON)
find_package(Boost REQUIRED)
# TODO(dhood): enable python support once ported to ROS 2
# catkin_python_setup()
@ -27,7 +30,7 @@ include_directories(include
${sensor_msgs_INCLUDE_DIRS}
${tf2_INCLUDE_DIRS}
${tf2_eigen_INCLUDE_DIRS}
$ENV{BOOST_ROOT}
${Boost_INCLUDE_DIRS}
)
add_library(laser_geometry src/laser_geometry.cpp)