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

相关推荐
Lucky_Turtle1 天前
【Java Xml】Apache Commons Digester3解析
xml·java·apache
莫陌尛.1 天前
xml 方式声明式事务案例
xml
m0_728033132 天前
JavaWeb——(web.xml)中的(url-pattern)
xml·前端
有梦想的攻城狮3 天前
Maven中的settings.xml文件配置详解
xml·java·maven·settings.xml
诸神缄默不语4 天前
Maven用户设置文件(settings.xml)配置指南
xml·java·maven
lang201509284 天前
MyBatis Mapper XML 核心详解
xml·mybatis
YxVoyager6 天前
Qt C++ :XML文件处理工具 <QXml>模块
xml·c++·qt
天若有情67311 天前
Spring配置文件XML验证错误全面解决指南:从cvc-elt.1.a到找不到‘beans‘元素声明
xml·java·spring
私人珍藏库12 天前
[Windows] 发票识别工具。支持xml、pdf、ofd文件
xml·pdf
Derrick__112 天前
Python常用内建模块——XML
xml·python