写完一段ROS发布话题的C++代码后,再写一下其CMakeLists.txt文件的内容

CMakeLists.txt文件的内容可以包括:

  • 添加源文件:add_executable(<target> <sources>)
  • 添加依赖:target_link_libraries(<target> <libraries>)
  • 配置发布信息:rosbuild_add_executable(<target> <sources>)
  • 添加ROS节点:add_ros_node(<node_name> <node_executable> <node_type>)

猜你喜欢

转载自blog.csdn.net/weixin_42599908/article/details/129538133