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