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})