From cfe4783575a90541299c76c42fa8e0a64f67c0bd Mon Sep 17 00:00:00 2001 From: Daisuke Nishimatsu Date: Thu, 12 May 2022 10:13:26 +0900 Subject: [PATCH] chore: add workaround for octomap Signed-off-by: Daisuke Nishimatsu --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 411ecea..1a9619c 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,11 +12,17 @@ endif() find_package(ament_cmake_auto REQUIRED) ament_auto_find_build_dependencies() +find_package(OCTOMAP REQUIRED) ament_auto_add_library(${PROJECT_NAME} SHARED src/conversions.cpp ) +target_include_directories(${PROJECT_NAME} + PUBLIC + ${OCTOMAP_INCLUDE_DIRS} +) + if(BUILD_TESTING) find_package(ament_lint_auto REQUIRED) ament_lint_auto_find_test_dependencies()