mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-25 18:18:49 -04:00
22 lines
607 B
CMake
22 lines
607 B
CMake
|
# - Try to find MAVLINK
|
||
|
# Once done, this will define
|
||
|
#
|
||
|
# MAVLINK_FOUND - system has scicoslab
|
||
|
# MAVLINK_INCLUDE_DIRS - the scicoslab include directories
|
||
|
|
||
|
include(LibFindMacros)
|
||
|
include(MacroCommonPaths)
|
||
|
|
||
|
MacroCommonPaths(MAVLINK)
|
||
|
|
||
|
# Include dir
|
||
|
find_path(MAVLINK_INCLUDE_DIR
|
||
|
NAMES mavlink/mavlink_types.h
|
||
|
PATHS ${COMMON_INCLUDE_PATHS_MAVLINK}
|
||
|
)
|
||
|
|
||
|
# Set the include dir variables and the libraries and let libfind_process do the rest.
|
||
|
# NOTE: Singular variables for this library, plural for libraries this this lib depends on.
|
||
|
set(MAVLINK_PROCESS_INCLUDES MAVLINK_INCLUDE_DIR)
|
||
|
libfind_process(MAVLINK)
|