From 1f69b83e8abc497c3c8207ae7748d1f06e9a82a0 Mon Sep 17 00:00:00 2001 From: Chris Lalancette Date: Fri, 23 Oct 2020 09:38:58 -0400 Subject: [PATCH] Minor fixes for Cartographer from ROS (#1705) * restrict boost dependencies to the ones used * Also add googletest as a build dependency. * Set GMOCK_INCLUDE_DIRS when doing src fallback. Signed-off-by: Mikael Arguedas Signed-off-by: Chris Lalancette Co-authored-by: Mikael Arguedas --- cmake/modules/FindGMock.cmake | 1 + package.xml | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/cmake/modules/FindGMock.cmake b/cmake/modules/FindGMock.cmake index 76cea16..b29c0fe 100644 --- a/cmake/modules/FindGMock.cmake +++ b/cmake/modules/FindGMock.cmake @@ -77,6 +77,7 @@ if(NOT GMock_FOUND) EXCLUDE_FROM_ALL) endif() set(GMOCK_LIBRARIES gmock_main) + set(GMOCK_INCLUDE_DIRS ${GMOCK_SRC_DIR}/include) endif() endif() diff --git a/package.xml b/package.xml index 19c811c..2d4d317 100644 --- a/package.xml +++ b/package.xml @@ -38,9 +38,10 @@ git google-mock + gtest python3-sphinx - boost + libboost-iostreams-dev eigen libcairo2-dev libceres-dev