From 390a2d4767371fbc9a0ece57b17334d6e9a07839 Mon Sep 17 00:00:00 2001 From: William Woodall Date: Sun, 23 Feb 2014 11:05:08 -0800 Subject: [PATCH] [style] fixup cmake and package.xml --- CMakeLists.txt | 19 ++++++++++++++----- package.xml | 18 +++++++++--------- 2 files changed, 23 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 7b40e86..3f5509b 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,10 +1,16 @@ cmake_minimum_required(VERSION 2.8.3) project(laser_geometry) -find_package(catkin REQUIRED cmake_modules sensor_msgs roscpp tf angles) -list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) +find_package(catkin REQUIRED + COMPONENTS + angles + cmake_modules + roscpp + sensor_msgs + tf +) -find_package(Boost REQUIRED COMPONENTS thread) +find_package(Boost REQUIRED COMPONENTS system thread) find_package(Eigen REQUIRED) @@ -14,8 +20,11 @@ catkin_package( DEPENDS Boost Eigen ) -include_directories(SYSTEM ${Boost_INCLUDE_DIRS} ${EIGEN_INCLUDE_DIRS}) -include_directories(include ${catkin_INCLUDE_DIRS}) +include_directories(include + ${catkin_INCLUDE_DIRS} + ${Boost_INCLUDE_DIRS} + ${Eigen_INCLUDE_DIRS} +) add_library(laser_geometry src/laser_geometry.cpp) target_link_libraries(laser_geometry ${Boost_LIBRARIES} ${tf_LIBRARIES}) diff --git a/package.xml b/package.xml index 3cc5dd3..2583bc0 100644 --- a/package.xml +++ b/package.xml @@ -18,19 +18,19 @@ catkin - cmake_modules - sensor_msgs - roscpp - tf angles - eigen boost + cmake_modules + eigen + roscpp + sensor_msgs + tf - sensor_msgs - roscpp - tf angles - eigen boost + eigen + roscpp + sensor_msgs + tf