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