From 2803b7bb49340c80e36f9e27d835176b72f69ec8 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Tue, 6 Dec 2016 16:23:33 +0100 Subject: [PATCH] Include what you use. (#214) --- cartographer_ros/cartographer_ros/CMakeLists.txt | 2 ++ cartographer_ros/cartographer_ros/node_main.cc | 1 + cartographer_ros/cartographer_ros/offline_node_main.cc | 1 + 3 files changed, 4 insertions(+) diff --git a/cartographer_ros/cartographer_ros/CMakeLists.txt b/cartographer_ros/cartographer_ros/CMakeLists.txt index 20c9ecb..7aae7e4 100644 --- a/cartographer_ros/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/cartographer_ros/CMakeLists.txt @@ -175,6 +175,7 @@ google_binary(cartographer_assets_writer google_binary(cartographer_node USES_CARTOGRAPHER + USES_GFLAGS SRCS node_main.cc DEPENDS @@ -195,6 +196,7 @@ install(TARGETS cartographer_assets_writer ) google_binary(cartographer_offline_node USES_CARTOGRAPHER + USES_GFLAGS SRCS offline_node_main.cc DEPENDS diff --git a/cartographer_ros/cartographer_ros/node_main.cc b/cartographer_ros/cartographer_ros/node_main.cc index aea0452..71a24c9 100644 --- a/cartographer_ros/cartographer_ros/node_main.cc +++ b/cartographer_ros/cartographer_ros/node_main.cc @@ -23,6 +23,7 @@ #include "cartographer/common/port.h" #include "cartographer_ros/node.h" #include "cartographer_ros/ros_log_sink.h" +#include "gflags/gflags.h" #include "tf2_ros/transform_listener.h" DEFINE_string(configuration_directory, "", diff --git a/cartographer_ros/cartographer_ros/offline_node_main.cc b/cartographer_ros/cartographer_ros/offline_node_main.cc index 000e928..0a710a1 100644 --- a/cartographer_ros/cartographer_ros/offline_node_main.cc +++ b/cartographer_ros/cartographer_ros/offline_node_main.cc @@ -26,6 +26,7 @@ #include "cartographer_ros/node.h" #include "cartographer_ros/ros_log_sink.h" #include "cartographer_ros/urdf_reader.h" +#include "gflags/gflags.h" #include "ros/callback_queue.h" #include "rosbag/bag.h" #include "rosbag/view.h"