You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: source/Releases/Release-Humble-Hawksbill.rst
+29
Original file line number
Diff line number
Diff line change
@@ -45,6 +45,35 @@ Installation
45
45
New features in this ROS 2 release
46
46
----------------------------------
47
47
48
+
49
+
ament_cmake_gen_version_h
50
+
^^^^^^^^^^^^^^^^^^^^^^^^^
51
+
52
+
Generating a C/C++ header with version info
53
+
"""""""""""""""""""""""""""""""""""""""""""
54
+
A new CMake function to generate a header with the package version info was added to the `ament_cmake_gen_version_h` in `ament/ament_cmake#377 <https://github.com/ament/ament_cmake/pull/377>`__.
55
+
Here's the simplest use case:
56
+
57
+
.. code-block:: CMake
58
+
59
+
project(my_project)
60
+
add_library(my_lib ...)
61
+
ament_generate_version_header(my_lib)
62
+
63
+
It will generate a header with version info from the ``package.xml`` and make it available to targets that link against the ``my_lib`` library.
0 commit comments