瀏覽代碼

解决编译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