Browse Source

cmake px4_base -> px4_parse_function_args

sbg
Daniel Agar 5 years ago
parent
commit
fb7521eb5e
  1. 1
      CMakeLists.txt
  2. 2
      cmake/gtest/px4_add_gtest.cmake
  3. 2
      cmake/px4_add_board.cmake
  4. 2
      cmake/px4_add_common_flags.cmake
  5. 2
      cmake/px4_add_library.cmake
  6. 2
      cmake/px4_add_module.cmake
  7. 2
      cmake/px4_git.cmake
  8. 12
      cmake/px4_parse_function_args.cmake
  9. 2
      platforms/nuttx/cmake/px4_impl_os.cmake
  10. 6
      platforms/posix/cmake/px4_impl_os.cmake
  11. 2
      platforms/qurt/cmake/px4_impl_os.cmake

1
CMakeLists.txt

@ -105,6 +105,7 @@ set(PX4_SOURCE_DIR "${CMAKE_CURRENT_SOURCE_DIR}") @@ -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

2
cmake/gtest/px4_add_gtest.cmake

@ -31,8 +31,6 @@ @@ -31,8 +31,6 @@
#
############################################################################
include(px4_base)
#=============================================================================
#
# px4_add_gtest

2
cmake/px4_add_board.cmake

@ -31,8 +31,6 @@ @@ -31,8 +31,6 @@
#
############################################################################
include(px4_base)
#=============================================================================
#
# px4_add_board

2
cmake/px4_add_common_flags.cmake

@ -31,8 +31,6 @@ @@ -31,8 +31,6 @@
#
############################################################################
include(px4_base)
#=============================================================================
#
# px4_add_common_flags

2
cmake/px4_add_library.cmake

@ -31,8 +31,6 @@ @@ -31,8 +31,6 @@
#
############################################################################
include(px4_base)
#=============================================================================
#
# px4_add_library

2
cmake/px4_add_module.cmake

@ -31,8 +31,6 @@ @@ -31,8 +31,6 @@
#
############################################################################
include(px4_base)
#=============================================================================
#
# px4_add_module

2
cmake/px4_git.cmake

@ -31,8 +31,6 @@ @@ -31,8 +31,6 @@
#
############################################################################
include(px4_base)
#=============================================================================
#
# px4_add_git_submodule

12
cmake/px4_base.cmake → cmake/px4_parse_function_args.cmake

@ -31,17 +31,6 @@ @@ -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) @@ -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}")

2
platforms/nuttx/cmake/px4_impl_os.cmake

@ -42,8 +42,6 @@ @@ -42,8 +42,6 @@
# * px4_os_prebuild_targets
#
include(px4_base)
#=============================================================================
#
# px4_os_add_flags

6
platforms/posix/cmake/px4_impl_os.cmake

@ -46,8 +46,6 @@ @@ -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) @@ -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) @@ -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

2
platforms/qurt/cmake/px4_impl_os.cmake

@ -49,8 +49,6 @@ @@ -49,8 +49,6 @@
# * px4_os_prebuild_targets
#
include(px4_base)
#=============================================================================
#
# px4_qurt_generate_builtin_commands

Loading…
Cancel
Save