mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-24 06:03:33 +08:00
cmake: Fixes for qurt and nuttx
Added px4_parameters.c to nuttx executable src list. Minor syntax fix in Tools/px_generate_params.py for semicolon. Added handling of PX4_MAIN which was not yet supoprted in the cmake build. Fixed include quotes in muorb_test_example.cpp Signed-off-by: Mark Charlebois <charlebm@gmail.com>
This commit is contained in:
@@ -273,6 +273,9 @@ function(px4_add_module)
|
||||
endif()
|
||||
endforeach()
|
||||
foreach (prop STACK MAIN COMPILE_FLAGS LINK_FLAGS PRIORITY)
|
||||
if ("${prop}" STREQUAL "MAIN")
|
||||
add_definitions(-DPX4_MAIN=${${prop}}_app_main)
|
||||
endif()
|
||||
if (${prop})
|
||||
set_target_properties(${MODULE} PROPERTIES "${prop}" "${${prop}}")
|
||||
endif()
|
||||
|
||||
Reference in New Issue
Block a user