forked from Archive/PX4-Autopilot
cmake px4_base -> px4_parse_function_args
This commit is contained in:
parent
d256fb8770
commit
fb7521eb5e
|
@ -105,6 +105,7 @@ set(PX4_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
|
|||
set(PX4_BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}")
|
||||
|
||||
list(APPEND CMAKE_MODULE_PATH ${PX4_SOURCE_DIR}/cmake)
|
||||
include(px4_parse_function_args)
|
||||
|
||||
#=============================================================================
|
||||
# git
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_add_gtest
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_add_board
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_add_common_flags
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_add_library
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_add_module
|
||||
|
|
|
@ -31,8 +31,6 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_add_git_submodule
|
||||
|
|
|
@ -31,17 +31,6 @@
|
|||
#
|
||||
############################################################################
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# Defined functions in this file
|
||||
#
|
||||
# utility functions
|
||||
#
|
||||
# * px4_parse_function_args
|
||||
#
|
||||
|
||||
include(CMakeParseArguments)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_parse_function_args
|
||||
|
@ -88,6 +77,7 @@ include(CMakeParseArguments)
|
|||
# name: hello
|
||||
# list: a b c
|
||||
#
|
||||
include(CMakeParseArguments)
|
||||
function(px4_parse_function_args)
|
||||
|
||||
cmake_parse_arguments(IN "" "NAME" "OPTIONS;ONE_VALUE;MULTI_VALUE;REQUIRED;ARGN" "${ARGN}")
|
|
@ -42,8 +42,6 @@
|
|||
# * px4_os_prebuild_targets
|
||||
#
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_os_add_flags
|
||||
|
|
|
@ -46,8 +46,6 @@
|
|||
# * px4_os_prebuild_targets
|
||||
#
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_posix_generate_builtin_commands
|
||||
|
@ -219,7 +217,7 @@ function(px4_os_add_flags)
|
|||
-D__PX4_POSIX
|
||||
-Dnoreturn_function=__attribute__\(\(noreturn\)\)
|
||||
)
|
||||
|
||||
|
||||
include_directories(platforms/posix/include)
|
||||
|
||||
if ("${PX4_BOARD}" MATCHES "sitl")
|
||||
|
@ -314,7 +312,7 @@ function(px4_os_add_flags)
|
|||
set(LIBROBOTCONTROL_INSTALL_DIR $ENV{LIBROBOTCONTROL_INSTALL_DIR})
|
||||
|
||||
# On cross compile host system and native build system:
|
||||
# a) select and define LIBROBOTCONTROL_INSTALL_DIR environment variable so that
|
||||
# a) select and define LIBROBOTCONTROL_INSTALL_DIR environment variable so that
|
||||
# other unwanted headers will not be included
|
||||
# b) install robotcontrol.h and rc/* into $LIBROBOTCONTROL_INSTALL_DIR/include
|
||||
# c) install pre-built native (ARM) version of librobotcontrol.* into $LIBROBOTCONTROL_INSTALL_DIR/lib
|
||||
|
|
|
@ -49,8 +49,6 @@
|
|||
# * px4_os_prebuild_targets
|
||||
#
|
||||
|
||||
include(px4_base)
|
||||
|
||||
#=============================================================================
|
||||
#
|
||||
# px4_qurt_generate_builtin_commands
|
||||
|
|
Loading…
Reference in New Issue