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

相关推荐
小突突突19 小时前
总结 MyBatis 的XML实现方法
xml·oracle·mybatis
ianozo19 小时前
[NCTF2019]True XML cookbook[XXE] [内网探测] [网络ip相关知识]
xml
Мартин.3 天前
[Meachines] [Medium] DevOops XXE-XML-RSS+cPickle反序列化+git-leak权限提升
xml·git
珺毅同学3 天前
XML标签格式转换为YOLO TXT格式
xml·人工智能·yolo
一个幽默的程序员4 天前
Postman 如何发送 XML 格式的 API 请求?
xml·测试工具·postman
Smilecoc4 天前
EXCEL报错:无法共享此工作薄,因表包含excel表或xml映射的解决方法
xml·excel
demonlg01124 天前
Go 语言标准库中encoding/xml模块详细功能介绍与示例
xml·开发语言·golang
逍遥德5 天前
pom.xml与.yml,java配置参数传递
xml·java·spring boot·后端·系统架构
一头大学牲6 天前
Data Serialization(数据序列化)
xml·服务器·网络·json·yaml·数据序列化
阑梦清川8 天前
Mybatis操作数据库(注解+xml两个方式)
xml·数据库·mybatis