mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-06-24 17:00:36 +08:00
Add the capability to use Gazebo Harmonic if it is installed
This commit is contained in:
@@ -32,13 +32,13 @@
|
||||
############################################################################
|
||||
|
||||
# Find the gz_Transport library
|
||||
find_package(gz-transport
|
||||
#REQUIRED COMPONENTS core
|
||||
NAMES
|
||||
#ignition-transport11 # IGN (Fortress and earlier) no longer supported
|
||||
gz-transport12
|
||||
#QUIET
|
||||
)
|
||||
# First look for GZ Harmonic libraries
|
||||
find_package(gz-transport NAMES gz-transport13)
|
||||
|
||||
# If Harmonic not found, look for GZ Garden libraries
|
||||
if(NOT gz-transport_FOUND)
|
||||
find_package(gz-transport NAMES gz-transport12)
|
||||
endif()
|
||||
|
||||
if(gz-transport_FOUND)
|
||||
|
||||
|
||||
@@ -35,6 +35,7 @@
|
||||
|
||||
#include <lib/mixer_module/mixer_module.hpp>
|
||||
|
||||
#include <gz/msgs.hh>
|
||||
#include <gz/transport.hh>
|
||||
|
||||
#include <uORB/PublicationMulti.hpp>
|
||||
|
||||
Reference in New Issue
Block a user