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 updated message generate pipeline #354

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,17 @@ set(GZ_MATH_VER ${gz-math7_VERSION_MAJOR})
gz_find_package(gz-msgs10 REQUIRED PRIVATE)
set(GZ_MSGS_VER ${gz-msgs10_VERSION_MAJOR})

# Get the gz-msgs installed messages and generate a library from them
gz_msgs_get_installed_messages(
MESSAGES_PATH_VARIABLE MSGS_PATH
MESSAGES_PROTOS_VARIABLE MSGS_PROTOS)

gz_msgs_generate_messages(
TARGET gz_msgs_gen
PROTO_PACKAGE "gz.msgs"
MSGS_PATH ${MSGS_PATH}
MSGS_PROTOS ${MSGS_PROTOS})

#--------------------------------------
# Find gz-tools
find_program(HAVE_GZ_TOOLS gz)
Expand Down
3 changes: 2 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@ target_link_libraries(${PROJECT_LIBRARY_TARGET_NAME}
PUBLIC
gz-common${GZ_COMMON_VER}::gz-common${GZ_COMMON_VER}
PRIVATE
gz-msgs${GZ_MSGS_VER}::gz-msgs${GZ_MSGS_VER}
gz-math${GZ_MATH_VER}::gz-math${GZ_MATH_VER}
gz_msgs_gen
curl::curl
${JSONCPP_TARGET}
TINYXML2::TINYXML2
Expand Down