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. CMakeLists.txtpackage.xml依赖比较

    2023-12-13 06:56:01       47 阅读
  2. Android Build 依赖

    2023-12-13 06:56:01       46 阅读
  3. QuerywrapperLambdaquerywrappe比较

    2023-12-13 06:56:01       44 阅读
  4. Golang:依赖注入wire

    2023-12-13 06:56:01       29 阅读
  5. Docker容器JVM比较

    2023-12-13 06:56:01       76 阅读

最近更新

  1. docker php8.1+nginx base 镜像 dockerfile 配置

    2023-12-13 06:56:01       98 阅读
  2. Could not load dynamic library ‘cudart64_100.dll‘

    2023-12-13 06:56:01       106 阅读
  3. 在Django里面运行非项目文件

    2023-12-13 06:56:01       87 阅读
  4. Python语言-面向对象

    2023-12-13 06:56:01       96 阅读

热门阅读

  1. Edge问题解决教程

    2023-12-13 06:56:01       59 阅读
  2. 20231212 cmake 编译中间库

    2023-12-13 06:56:01       66 阅读
  3. pdf读取内容缺失(漏字/文字丢失)问题

    2023-12-13 06:56:01       140 阅读
  4. OpenCV中vector<Mat>数据存储问题

    2023-12-13 06:56:01       51 阅读
  5. 小程序面试总结

    2023-12-13 06:56:01       42 阅读
  6. 【洛谷】【模板】排序

    2023-12-13 06:56:01       66 阅读
  7. Vue3:ref函数和reactive函数和setup函数

    2023-12-13 06:56:01       63 阅读
  8. 元编程(Metaprogramming)

    2023-12-13 06:56:01       70 阅读