We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f743cca commit 4a879a0Copy full SHA for 4a879a0
1 file changed
CMakeLists.txt
@@ -61,6 +61,11 @@ add_dependencies(libmicroros-prebuilt libmicroros_project)
61
set_target_properties(libmicroros-prebuilt PROPERTIES IMPORTED_LOCATION ${COMPONENT_DIR}/libmicroros.a)
62
target_include_directories(libmicroros-prebuilt INTERFACE ${COMPONENT_DIR}/include)
63
64
+set(INCLUDE_ROS2_PACKAGES rmw;rcl;rcl_action;rcl_lifecycle;rcl_logging_interface)
65
+foreach(pkg ${INCLUDE_ROS2_PACKAGES})
66
+ target_include_directories(libmicroros-prebuilt INTERFACE ${COMPONENT_DIR}/include/${pkg})
67
+endforeach()
68
+
69
add_dependencies(${COMPONENT_LIB} libmicroros-prebuilt)
70
target_link_libraries(${COMPONENT_LIB} INTERFACE libmicroros-prebuilt)
71
0 commit comments