From e4abb77835c936ac86a8b7987a7e60ab747a1796 Mon Sep 17 00:00:00 2001 From: Holger Rapp Date: Wed, 19 Oct 2016 17:33:41 +0200 Subject: [PATCH] Use pkg-config to find yaml-cpp. (#130) Fixes #117. --- cartographer_ros/CMakeLists.txt | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cartographer_ros/CMakeLists.txt b/cartographer_ros/CMakeLists.txt index b0a8856..fd60213 100644 --- a/cartographer_ros/CMakeLists.txt +++ b/cartographer_ros/CMakeLists.txt @@ -29,6 +29,7 @@ set(PACKAGE_DEPENDENCIES tf2_ros ) + find_package(cartographer REQUIRED) include("${CARTOGRAPHER_CMAKE_DIR}/functions.cmake") google_initialize_cartographer_project() @@ -36,6 +37,9 @@ google_enable_testing() find_package(catkin REQUIRED COMPONENTS ${PACKAGE_DEPENDENCIES}) +include(FindPkgConfig) +PKG_SEARCH_MODULE(YAMLCPP REQUIRED yaml-cpp>=0.5.1) + catkin_package( CATKIN_DEPENDS message_runtime