فهرست منبع

解决编译serial_imu_node时,提示找不到服务头文件的错误,修改CMakeLists.txt文件

corvin rasp melodic 3 سال پیش
والد
کامیت
1ab1fc5ba2
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      serial_imu_hat_6dof/CMakeLists.txt

+ 1 - 1
serial_imu_hat_6dof/CMakeLists.txt

@@ -131,7 +131,7 @@ add_executable(serial_imu_node src/proc_serial_data.cpp src/serial_imu_node.cpp)
 
 ## Add cmake target dependencies of the executable
 ## same as for the library above
-# add_dependencies(${PROJECT_NAME}_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
+add_dependencies(serial_imu_node ${${PROJECT_NAME}_EXPORTED_TARGETS} ${catkin_EXPORTED_TARGETS})
 
 ## Specify libraries to link a library or executable target against
 target_link_libraries(serial_imu_node