Skip to content
Snippets Groups Projects
Commit 4da08aa5 authored by Olivier Stasse's avatar Olivier Stasse
Browse files

[cmake] Fix dependencies

parent 67e22585
No related branches found
No related tags found
No related merge requests found
......@@ -29,7 +29,9 @@ target_include_directories(gz_transport_hw_interface PUBLIC
$<INSTALL_INTERFACE:include>)
target_link_libraries(gz_transport_hw_interface
gz-transport${GZ_TRANSPORT_VER}::core
gz-sim${GZ_SIM_VER}::core)
gz-sim${GZ_SIM_VER}::core
${PROJECT_NAME}-msgs
)
add_executable(control_loop ./tools/control_loop.cc)
......
add_subdirectory(msgs)
find_package(gz_sim_vendor REQUIRED)
find_package(gz-sim REQUIRED)
......@@ -14,10 +12,12 @@ add_library(${gz_gep_tools_plugin}-system SHARED
target_link_libraries(${gz_gep_tools_plugin}-system PRIVATE
gz-sim::gz-sim
gz-plugin::register
{$PROJECT_NAME}-msgs
${PROJECT_NAME}-msgs
)
# Install directories
install(TARGETS ${gz_gep_tools_plugin}-system
DESTINATION lib
)
add_subdirectory(msgs)
......@@ -9,7 +9,7 @@ set(GZ_MSGS_VER ${gz-msgs10_VERSION_MAJOR})
# Define a variable 'MSGS_PROTOS' listing the .proto files
set(MSGS_PROTOS
${CMAKE_CURRENT_SOURCE_DIR}/gz/msgs/map_named_joint_forces.proto
${CMAKE_CURRENT_SOURCE_DIR}/gz/msgs/map_named_joints_forces.proto
)
# Call 'gz_msgs_generate_messages()' to process the .proto files
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment