-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make laser_geometry build for ros2 (on windows 10)
- Loading branch information
Showing
5 changed files
with
141 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,51 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(laser_geometry) | ||
cmake_minimum_required(VERSION 3.5) | ||
|
||
find_package(catkin REQUIRED | ||
COMPONENTS | ||
angles | ||
cmake_modules | ||
roscpp | ||
sensor_msgs | ||
tf | ||
tf2 | ||
) | ||
project(laser_geometry) | ||
|
||
find_package(Boost REQUIRED COMPONENTS system thread) | ||
find_package(ament_cmake REQUIRED) | ||
|
||
find_package(Eigen REQUIRED) | ||
find_package(angles REQUIRED) | ||
find_package(rclcpp REQUIRED) | ||
find_package(sensor_msgs REQUIRED) | ||
find_package(tf2 REQUIRED) | ||
find_package(ecl_eigen REQUIRED) | ||
|
||
catkin_python_setup() | ||
# TODO(dhood): enable python support once ported to ROS 2 | ||
# catkin_python_setup() | ||
|
||
catkin_package( | ||
INCLUDE_DIRS include | ||
LIBRARIES laser_geometry | ||
DEPENDS Boost Eigen | ||
) | ||
# | ||
#catkin_package( | ||
# INCLUDE_DIRS include | ||
# LIBRARIES laser_geometry | ||
# DEPENDS Boost Eigen | ||
#) | ||
# | ||
|
||
include_directories(include | ||
${catkin_INCLUDE_DIRS} | ||
${Boost_INCLUDE_DIRS} | ||
${Eigen_INCLUDE_DIRS} | ||
${angles_INCLUDE_DIRS} | ||
${rclcpp_INCLUDE_DIRS} | ||
${sensor_msgs_INCLUDE_DIRS} | ||
${tf2_INCLUDE_DIRS} | ||
${tf2_eigen_INCLUDE_DIRS} | ||
$ENV{BOOST_ROOT} | ||
) | ||
|
||
add_library(laser_geometry src/laser_geometry.cpp) | ||
target_link_libraries(laser_geometry ${Boost_LIBRARIES} ${tf_LIBRARIES}) | ||
|
||
if(CATKIN_ENABLE_TESTING) | ||
catkin_add_gtest(projection_test test/projection_test.cpp) | ||
target_link_libraries(projection_test laser_geometry) | ||
target_link_libraries(laser_geometry | ||
${angles_LIBRARIES} | ||
${rclcpp_LIBRARIES} | ||
${sensor_msgs_LIBRARIES} | ||
${tf2_LIBRARIES} | ||
${tf2_eigen_LIBRARIES} | ||
) | ||
|
||
catkin_add_nosetests(test/projection_test.py) | ||
endif() | ||
ament_export_include_directories(include) | ||
ament_export_libraries(laser_geometry) | ||
ament_package() | ||
|
||
install(TARGETS laser_geometry | ||
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION} | ||
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}) | ||
ARCHIVE DESTINATION lib | ||
LIBRARY DESTINATION lib) | ||
install(DIRECTORY include/laser_geometry/ | ||
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION} | ||
DESTINATION include/${PROJECT_NAME}/ | ||
FILES_MATCHING PATTERN "*.h") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.