From db012b4118079a64de2c2b5512e979910778f6e6 Mon Sep 17 00:00:00 2001 From: Borong Yuan Date: Fri, 1 Jan 2021 14:32:40 +0800 Subject: [PATCH] add missing dependencies to find generated msgs --- CMakeLists.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index 31fe073..7e1b95d 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -79,6 +79,7 @@ add_executable(loam_feat_extract src/feature_extract.cpp) target_link_libraries(loam_feat_extract ${catkin_LIBRARIES} ${PCL_LIBRARIES}) add_executable(loam_laserMapping src/laserMapping.cpp) +add_dependencies(loam_laserMapping ${catkin_EXPORTED_TARGETS}) target_link_libraries(loam_laserMapping ${catkin_LIBRARIES} ${PCL_LIBRARIES} ${OpenCV_LIBS} ${PYTHON_LIBRARIES}) target_include_directories(loam_laserMapping PRIVATE ${PYTHON_INCLUDE_DIRS}) # target_compile_definitions(loam_laserMapping PRIVATE ROOT_DIR="${CMAKE_CURRENT_SOURCE_DIR}")