To build targets, the build system needs information such as the locations of tool chain components (e.g. C++ compiler), source code locations, code dependencies, external dependencies, where those dependencies are located, which targets should be built, where targets should be built, and where they should be installed. This is typically expressed in some set of configuration files read by the build system. In an IDE, this information is typically stored as part of the workspace/project meta-information (e.g. Visual C++ project file). With CMake, it is specified in a file typically called ‘CMakeLists.txt’ and with GNU Make it is within a file typically called ‘Makefile’. The build system utilizes this information to process and build source code in the appropriate order to generate targets.
ROS utilizes a custom build system, catkin, that extends CMake to manage dependencies between packages
本文介绍了构建系统所需的关键信息,包括工具链组件位置、源代码位置等,并解释了这些信息如何在不同构建系统中表达。此外,还提到了ROS使用的定制化构建系统catkin及其与CMake的关系。
314

被折叠的 条评论
为什么被折叠?



