mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-19 05:23:33 +08:00
cmake: param refactoring
Use a struct to contain all the parameters so the ordering in memory is not machine dependent. Add number of parameters to the param struct. The struct actually allows direct accessing by the member name if desired. Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -9,7 +9,7 @@ px4_generate_parameters()
|
||||
|
||||
add_executable(mainapp
|
||||
${CMAKE_SOURCE_DIR}/src/platforms/posix/main.cpp
|
||||
${CMAKE_BINARY_DIR}/parameters.c
|
||||
${CMAKE_BINARY_DIR}/px4_parameters.c
|
||||
apps.h
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user