Skip to content

Commit

Permalink
Generalize gz vendor use and modernize CMake (#82)
Browse files Browse the repository at this point in the history
Author: Jose Luis Rivero <jrivero@osrfoundation.org>
Approver: Chris Iverach-Brereton <civerachb-cpr@clearpathrobotics.com>
  • Loading branch information
j-rivero committed Sep 19, 2024
1 parent 5252738 commit 779b16a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions turtlebot4_gz_gui_plugins/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ endif()

# find dependencies
find_package(ament_cmake REQUIRED)
find_package(gz_gui_vendor REQUIRED)
find_package(gz-gui)

if(BUILD_TESTING)
find_package(ament_lint_auto REQUIRED)
Expand Down
7 changes: 5 additions & 2 deletions turtlebot4_gz_gui_plugins/Turtlebot4Hmi/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,10 @@ find_package(Qt5
)

# Find the Gz gui library
find_package(gz-gui8 REQUIRED)
find_package(gz-common5 REQUIRED)
find_package(gz_gui_vendor REQUIRED)
find_package(gz-gui REQUIRED)
find_package(gz_common_vendor REQUIRED)
find_package(gz-common REQUIRED)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${GZ-GUI_CXX_FLAGS}")

Expand All @@ -39,6 +41,7 @@ link_directories(
)

# Generate examples
# MOC parsing is broken on Ionic: https://github.com/gazebosim/gz-msgs/issues/463
add_library(Turtlebot4Hmi SHARED ${headers_MOC}
Turtlebot4Hmi.cc
${resources_rcc}
Expand Down

0 comments on commit 779b16a

Please sign in to comment.