Quellcode durchsuchen

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

corvin rasp melodic vor 3 Jahren
Ursprung
Commit
1ab1fc5ba2
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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