Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use rosidl_get_typesupport_target() and target_link_libraries() #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions vicon_receiver/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,13 @@ get_default_rmw_implementation(rmw_implementation)
find_package("${rmw_implementation}" REQUIRED)
get_rmw_typesupport(typesupport_impls "${rmw_implementation}" LANGUAGE "cpp")

set(overall_typesupports "")
foreach(typesupport_impl ${typesupport_impls})
rosidl_target_interfaces(vicon_client
${PROJECT_NAME} ${typesupport_impl}
)
rosidl_get_typesupport_target(cpp_typesupport_target ${PROJECT_NAME} ${typesupport_impl})
set(overall_typesupports "${overall_typesupports};${cpp_typesupport_target}")
endforeach()
message(STATUS "Overall typesupports: ${overall_typesupports}")
target_link_libraries(vicon_client ${overall_typesupports})

install(TARGETS vicon_client DESTINATION lib/${PROJECT_NAME})

Expand Down