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

[cmake] Add dependency to gz-sim8

parent ddf46329
No related branches found
No related tags found
No related merge requests found
...@@ -11,6 +11,8 @@ set(CMAKE_VERBOSE_MAKEFILE TRUE) ...@@ -11,6 +11,8 @@ set(CMAKE_VERBOSE_MAKEFILE TRUE)
# Find the Gazebo Transport library # Find the Gazebo Transport library
find_package(gz-transport13 QUIET REQUIRED OPTIONAL_COMPONENTS log) find_package(gz-transport13 QUIET REQUIRED OPTIONAL_COMPONENTS log)
set(GZ_TRANSPORT_VER ${gz-transport13_VERSION_MAJOR}) set(GZ_TRANSPORT_VER ${gz-transport13_VERSION_MAJOR})
find_package(gz-sim8 QUIET REQUIRED OPTIONAL_COMPONENTS log)
set(GZ_SIM_VER ${gz-sim8_VERSION_MAJOR})
add_library(gz_transport_hw_interface SHARED add_library(gz_transport_hw_interface SHARED
src/joint_state_interface.cc src/joint_state_interface.cc
...@@ -19,7 +21,9 @@ add_library(gz_transport_hw_interface SHARED ...@@ -19,7 +21,9 @@ add_library(gz_transport_hw_interface SHARED
target_include_directories(gz_transport_hw_interface PUBLIC target_include_directories(gz_transport_hw_interface PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include> $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>) $<INSTALL_INTERFACE:include>)
target_link_libraries(gz_transport_hw_interface gz-transport${GZ_TRANSPORT_VER}::core) target_link_libraries(gz_transport_hw_interface
gz-transport${GZ_TRANSPORT_VER}::core
gz-sim${GZ_SIM_VER}::core)
add_executable(control_loop ./tools/control_loop.cc) add_executable(control_loop ./tools/control_loop.cc)
......
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