CMakeLists.txt与package.xml依赖项比较

这个是package.xml的依赖项

<license>Apache-2.0</license>

<buildtool_depend>ament_cmake</buildtool_depend>

<depend>curl</depend>

<depend>python3-yaml</depend>

<!-- these are needed to build fastrtps -->

<buildtool_depend>asio</buildtool_depend>

<buildtool_depend>tinyxml2</buildtool_depend>

<!-- end fastrtps deps -->

<depend>clang-tidy</depend>

<build_depend>flex</build_depend>

<build_depend>bison</build_depend>

<build_depend>libncurses-dev</build_depend>

<build_depend>usbutils</build_depend>

<exec_depend>python3-vcstool</exec_depend>

<test_depend>ament_lint_auto</test_depend>

<test_depend>ament_lint_common</test_depend>

<export>

这个是Cmakelists.txt的依赖项

find dependencies

find_package(ament_cmake REQUIRED)

uncomment the following section in order to fill in

further dependencies manually.

find_package(<dependency> REQUIRED)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)

the following line skips the linter which checks for copyrights

uncomment the line when a copyright and license is not present in all source files

#set(ament_cmake_copyright_FOUND TRUE)

the following line skips cpplint (only works in a git repo)

uncomment the line when this package is not in a git repo

#set(ament_cmake_cpplint_FOUND TRUE)

ament_lint_auto_find_test_dependencies()

endif()

可以看出来package.xml的依赖项远远多于cmakelists.txt依赖项,并不是一样的。

解释:cmakelists.txt只负责编译有关的依赖,其他无关不用管,package.xml包含了所有的依赖项,所以cmakelist依赖包含于package.xml依赖

相关推荐
墨痕诉清风14 小时前
java漏洞集合工具(Struts2、Fastjson、Weblogic(xml)、Shiro、Log4j、Jboss、SpringCloud)
xml·java·struts·安全·web安全·spring cloud·log4j
Lbwnb丶16 小时前
failure: repodata/repomd.xml from base: [Errno 256] No more mirrors to try.
xml
拾忆,想起16 小时前
设计模式三大分类完全解析:构建高质量软件的基石
xml·微服务·设计模式·性能优化·服务发现
前网易架构师-高司机17 小时前
汽车充电插口识别数据集,可识别快充,慢充插口,支持yolo,coco json,pascal voc xml格式的标注数据集
xml·yolo·汽车·快充·充电·m慢充·插口
武藤一雄17 小时前
彻底吃透.NET中序列化反序列化
xml·微软·c#·json·.net·.netcore
spencer_tseng18 小时前
org.eclipse.wst.common.project.facet.core.xml could not be read.
xml·java·eclipse
小鸡吃米…1 天前
Python - XML 处理
xml·开发语言·python·开源
老歌老听老掉牙1 天前
Vericut 5轴机床MCH文件解析与构建指南
xml·python·vericut
ii_best2 天前
「安卓开发辅助工具按键精灵」xml全分辨率插件jsd插件脚本教程
android·xml·开发语言·编辑器·安卓
总会落叶2 天前
MyBatis XML映射配置与日志系统全解析
xml·tomcat·mybatis