Use pkg-config to find yaml-cpp. (#130)

Fixes #117.
master
Holger Rapp 2016-10-19 17:33:41 +02:00 committed by GitHub
parent a3010b7611
commit e4abb77835
1 changed files with 4 additions and 0 deletions

View File

@ -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