From 9311be0f7a1cac1769af0a680018fafb4af4389f Mon Sep 17 00:00:00 2001 From: Wolfgang Hess Date: Tue, 20 Dec 2016 17:42:56 +0100 Subject: [PATCH] Fix the RViz plugin. (#237) --- cartographer_rviz/CMakeLists.txt | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/cartographer_rviz/CMakeLists.txt b/cartographer_rviz/CMakeLists.txt index 8bb22cb..788eeb2 100644 --- a/cartographer_rviz/CMakeLists.txt +++ b/cartographer_rviz/CMakeLists.txt @@ -41,11 +41,10 @@ catkin_package( ) file(GLOB_RECURSE ALL_SRCS "*.cc" "*.h") -message(${ALL_SRCS}) +set(CMAKE_AUTOMOC ON) add_library(${PROJECT_NAME} ${ALL_SRCS}) target_link_libraries(${PROJECT_NAME} PUBLIC ${QT_LIBRARIES}) -set(CMAKE_AUTOMOC ON) if(rviz_QT_VERSION VERSION_LESS "5") message(STATUS "Using Qt4 based on the rviz_QT_VERSION: ${rviz_QT_VERSION}") find_package(Qt4 ${rviz_QT_VERSION} EXACT REQUIRED QtCore QtGui) @@ -69,6 +68,9 @@ target_include_directories(${PROJECT_NAME} PUBLIC $ ) +target_include_directories(${PROJECT_NAME} PUBLIC ${CARTOGRAPHER_INCLUDE_DIRS}) +target_link_libraries(${PROJECT_NAME} PUBLIC ${CARTOGRAPHER_LIBRARIES}) + target_include_directories(${PROJECT_NAME} SYSTEM PUBLIC "${EIGEN3_INCLUDE_DIR}") target_link_libraries(${PROJECT_NAME} PUBLIC ${EIGEN3_LIBRARIES})