rosbuild/CMakeLists - ROS Wiki
wiki.ros.org/rosbuild/CMakeListsThis macro includes CMake code exported by another package. Specifically, it includes a file called module.cmake from a directory exported by package. This mechanism allows you to extend the build system by providing your own CMake code to be used in other packages. The package calling rosbuild_include() must depend on package.
list — CMake 3.23.0-rc4 Documentation
cmake.org › cmake › helpA list in cmake is a ; separated group of strings. To create a list the set command can be used. For example, set (var a b c d e) creates a list with a;b;c;d;e, and set (var "a b c d e") creates a string or a list with one item in it. (Note macro arguments are not variables, and therefore cannot be used in LIST commands.)
rosbuild/CMakeLists/Examples - ROS Wiki
wiki.ros.org/rosbuild/CMakeLists/ExamplesThis page collects examples of using the rosbuild API to perform common tasks. Contents. CMakeLists Examples. Building an executable. Building a library. Building a library and an executable that uses it. Building a C/C++ unit test (gtest) Adding compile / link flags. Linking against libraries built by other ROS packages.