mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-04 07:40:34 +08:00
Merge branch 'cmake-2' of https://github.com/jgoppert/Firmware into cmake2
This commit is contained in:
+7
-3
@@ -37,10 +37,10 @@
|
||||
# Structure
|
||||
# ---------------------------------------------------------------------------
|
||||
#
|
||||
# * Common functions should be included in px_utils.cmake.
|
||||
# * Common functions should be included in px_base.cmake.
|
||||
#
|
||||
# * OS/ board specific fucntions should be include in
|
||||
# px_${OS}_utils.cmake or px4_${OS}_${BOARD}_utils.cmake.
|
||||
# px_impl_${OS}.cmake or px4_impl_${OS}_${BOARD}.cmake.
|
||||
#
|
||||
# Formatting
|
||||
# ---------------------------------------------------------------------------
|
||||
@@ -110,7 +110,11 @@ set(package-contact "px4users@googlegroups.com")
|
||||
#
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
|
||||
include(px4_${OS}_utils)
|
||||
if (EXISTS px4_imple_${OS}_${BOARD})
|
||||
include(px4_impl_${OS}_${BOARD})
|
||||
else()
|
||||
include(px4_impl_${OS})
|
||||
endif()
|
||||
set(px4_required_functions
|
||||
px4_os_prebuild_targets
|
||||
px4_os_add_flags
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
# * px4_os_prebuild_targets
|
||||
#
|
||||
|
||||
include(px4_utils)
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
@@ -32,12 +32,9 @@
|
||||
############################################################################
|
||||
set(depends
|
||||
msg_gen
|
||||
prebuild_targets
|
||||
)
|
||||
|
||||
if (prebuild_targets)
|
||||
list(APPEND depends prebuild_targets)
|
||||
endif()
|
||||
|
||||
px4_add_module(
|
||||
MODULE platforms__common
|
||||
SRCS
|
||||
|
||||
Reference in New Issue
Block a user