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依赖

相关推荐
烤麻辣烫1 天前
黑马程序员苍穹外卖后端概览
xml·java·数据库·spring·intellij-idea
暗碳1 天前
安卓abx二进制xml文件转换普通xml文件
android·xml
jinxinyuuuus1 天前
文件格式转换工具:XLSX的XML流式解析、数据类型推断与CSV编码规范
xml
czlczl200209251 天前
从抛出异常到返回 JSON/XML:SpringBoot 异常处理全链路解析
xml·spring boot·json
jiayong232 天前
MyBatis XML Mapper 特殊字符处理方案
xml·mybatis
e***19352 天前
【mybatis】基本操作:详解Spring通过注解和XML的方式来操作mybatis
xml·spring·mybatis
编程修仙2 天前
第七篇 java的注解以及使用反射实现自定义注解功能
xml·java·开发语言·spring
暗碳3 天前
ai分析aweme-app.xml,default_config .xml文件
xml·人工智能
缺点内向3 天前
如何在 C# 中高效的将 XML 转换为 PDF
xml·后端·pdf·c#·.net
z***D6483 天前
使用 Logback 的最佳实践:`logback.xml` 与 `logback-spring.xml` 的区别与用法
xml·spring·logback