Skip to content

Commit

Permalink
add groups for generator and runtime packages (#283)
Browse files Browse the repository at this point in the history
* add groups for generator and runtime packages

* remove group dependency which wasn't part of CMake before
  • Loading branch information
dirk-thomas authored Jun 15, 2018
1 parent 6549399 commit 7eec3d7
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 6 deletions.
2 changes: 2 additions & 0 deletions rosidl_generator_c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ ament_export_dependencies(rosidl_typesupport_interface)
ament_export_include_directories(include)
ament_export_libraries(${PROJECT_NAME})

ament_index_register_resource("rosidl_generator_packages")

ament_python_install_package(${PROJECT_NAME})

if(BUILD_TESTING)
Expand Down
6 changes: 4 additions & 2 deletions rosidl_generator_c/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="2">
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>rosidl_generator_c</name>
<version>0.4.0</version>
<description>Generate the ROS interfaces in C.</description>
Expand All @@ -23,6 +23,8 @@
<test_depend>ament_lint_common</test_depend>
<test_depend>rosidl_cmake</test_depend>

<member_of_group>rosidl_generator_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down
3 changes: 3 additions & 0 deletions rosidl_generator_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ ament_export_dependencies(rosidl_cmake)
ament_export_dependencies(rosidl_generator_c)
ament_export_include_directories(include)

ament_index_register_resource("rosidl_generator_packages")
ament_index_register_resource("rosidl_runtime_packages")

ament_python_install_package(${PROJECT_NAME})

if(BUILD_TESTING)
Expand Down
7 changes: 5 additions & 2 deletions rosidl_generator_cpp/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="2">
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>rosidl_generator_cpp</name>
<version>0.4.0</version>
<description>Generate the ROS interfaces in C++.</description>
Expand All @@ -23,6 +23,9 @@
<test_depend>rosidl_cmake</test_depend>
<test_depend>rosidl_generator_c</test_depend>

<member_of_group>rosidl_generator_packages</member_of_group>
<member_of_group>rosidl_runtime_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down
2 changes: 2 additions & 0 deletions rosidl_generator_py/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ ament_export_dependencies(ament_cmake)
ament_export_dependencies(rmw)
ament_export_dependencies(rosidl_cmake)

ament_index_register_resource("rosidl_generator_packages")

ament_python_install_package(${PROJECT_NAME})

if(BUILD_TESTING)
Expand Down
6 changes: 4 additions & 2 deletions rosidl_generator_py/package.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<?xml-model href="http://download.ros.org/schema/package_format2.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="2">
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>rosidl_generator_py</name>
<version>0.4.0</version>
<description>Generate the ROS interfaces in Python.</description>
Expand Down Expand Up @@ -37,6 +37,8 @@
<test_depend>rosidl_parser</test_depend>
<test_depend>rosidl_typesupport_c</test_depend>

<member_of_group>rosidl_generator_packages</member_of_group>

<export>
<build_type>ament_cmake</build_type>
</export>
Expand Down
1 change: 1 addition & 0 deletions rosidl_typesupport_introspection_c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ target_include_directories(${PROJECT_NAME}
ament_export_libraries(${PROJECT_NAME})

ament_index_register_resource("rosidl_typesupport_c")
ament_index_register_resource("rosidl_runtime_packages")

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down
1 change: 1 addition & 0 deletions rosidl_typesupport_introspection_cpp/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ target_include_directories(${PROJECT_NAME}
ament_export_libraries(${PROJECT_NAME})

ament_index_register_resource("rosidl_typesupport_cpp")
ament_index_register_resource("rosidl_runtime_packages")

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down

0 comments on commit 7eec3d7

Please sign in to comment.