mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-05-19 03:19:06 +08:00
cmake handle mavlink v1 submodule only where used
This commit is contained in:
parent
1886c8d983
commit
32cba41bed
@ -31,16 +31,19 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(${PX4_SOURCE_DIR}/mavlink/include/mavlink)
|
||||
px4_add_git_submodule(TARGET git_mavlink_v1 PATH "${PX4_SOURCE_DIR}/mavlink/include/mavlink/v1.0")
|
||||
|
||||
px4_add_module(
|
||||
MODULE drivers__pwm_out_rc_in
|
||||
MAIN pwm_out_rc_in
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||
COMPILE_FLAGS
|
||||
-DMAVLINK_COMM_NUM_BUFFERS=1
|
||||
SRCS
|
||||
pwm_out_rc_in.cpp
|
||||
DEPENDS
|
||||
git_mavlink_v1
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@ -31,16 +31,19 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(${PX4_SOURCE_DIR}/mavlink/include/mavlink)
|
||||
px4_add_git_submodule(TARGET git_mavlink_v1 PATH "${PX4_SOURCE_DIR}/mavlink/include/mavlink/v1.0")
|
||||
|
||||
px4_add_module(
|
||||
MODULE drivers__snapdragon_rc_pwm
|
||||
MAIN snapdragon_rc_pwm
|
||||
COMPILE_FLAGS
|
||||
-DMAVLINK_COMM_NUM_BUFFERS=1
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||
SRCS
|
||||
snapdragon_rc_pwm.cpp
|
||||
DEPENDS
|
||||
git_mavlink_v1
|
||||
platforms__common
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
||||
@ -31,8 +31,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
px4_add_git_submodule(TARGET git_mavlink PATH "${PX4_SOURCE_DIR}/mavlink/include/mavlink/v1.0")
|
||||
px4_add_git_submodule(TARGET git_mavlink2 PATH "${PX4_SOURCE_DIR}/mavlink/include/mavlink/v2.0")
|
||||
px4_add_git_submodule(TARGET git_mavlink_v2 PATH "${PX4_SOURCE_DIR}/mavlink/include/mavlink/v2.0")
|
||||
|
||||
px4_add_module(
|
||||
MODULE modules__mavlink
|
||||
@ -61,6 +60,5 @@ px4_add_module(
|
||||
mavlink_ulog.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
git_mavlink
|
||||
git_mavlink2
|
||||
git_mavlink_v2
|
||||
)
|
||||
|
||||
@ -31,7 +31,7 @@
|
||||
#
|
||||
############################################################################
|
||||
|
||||
include_directories(${PX4_SOURCE_DIR}/mavlink/include/mavlink)
|
||||
px4_add_git_submodule(TARGET git_mavlink_v1 PATH "${PX4_SOURCE_DIR}/mavlink/include/mavlink/v1.0")
|
||||
|
||||
option(ENABLE_UART_RC_INPUT "Enable RC Input from UART mavlink connection" OFF)
|
||||
|
||||
@ -59,8 +59,11 @@ px4_add_module(
|
||||
MODULE modules__simulator
|
||||
MAIN simulator
|
||||
COMPILE_FLAGS
|
||||
INCLUDES
|
||||
${PX4_SOURCE_DIR}/mavlink/include/mavlink
|
||||
SRCS
|
||||
${SIMULATOR_SRCS}
|
||||
DEPENDS
|
||||
git_mavlink_v1
|
||||
platforms__common
|
||||
)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user