CMake: Add replay config

This commit is contained in:
Lorenz Meier 2016-01-28 22:27:49 +01:00
parent e5c53f2755
commit d7c8acd15c
3 changed files with 67 additions and 1 deletions

View File

@ -0,0 +1,62 @@
include(posix/px4_impl_posix)
set(CMAKE_TOOLCHAIN_FILE ${CMAKE_SOURCE_DIR}/cmake/toolchains/Toolchain-native.cmake)
set(config_module_list
drivers/device
drivers/boards/sitl
platforms/common
platforms/posix/px4_layer
platforms/posix/work_queue
systemcmds/param
systemcmds/ver
systemcmds/perf
modules/uORB
modules/param
modules/systemlib
modules/ekf2
modules/ekf2_replay
modules/sdlog2
modules/controllib
lib/mathlib
lib/mathlib/math/filter
lib/conversion
lib/ecl
lib/external_lgpl
lib/geo
lib/geo_lookup
)
set(config_extra_builtin_cmds
serdis
sercon
)
set(config_sitl_rcS
posix-configs/SITL/init/rcS
CACHE FILEPATH "init script for sitl"
)
set(config_sitl_viewer
replay
CACHE STRING "viewer for sitl"
)
set_property(CACHE config_sitl_viewer
PROPERTY STRINGS "replay;none")
set(config_sitl_debugger
disable
CACHE STRING "debugger for sitl"
)
set_property(CACHE config_sitl_debugger
PROPERTY STRINGS "disable;gdb;lldb")
add_custom_target(sercon)
set_target_properties(sercon PROPERTIES
MAIN "sercon" STACK "2048")
add_custom_target(serdis)
set_target_properties(serdis PROPERTIES
MAIN "serdis" STACK "2048")

View File

@ -0,0 +1,4 @@
uorb start
ekf2 start --replay
sleep 2
ekf2_replay start replay.px4log

View File

@ -57,7 +57,7 @@ add_custom_target(run_config
) )
add_dependencies(run_config mainapp) add_dependencies(run_config mainapp)
foreach(viewer none jmavsim gazebo) foreach(viewer none jmavsim gazebo replay)
foreach(debugger none gdb lldb ddd valgrind) foreach(debugger none gdb lldb ddd valgrind)
foreach(model none iris iris_opt_flow tailsitter standard_vtol) foreach(model none iris iris_opt_flow tailsitter standard_vtol)
if (debugger STREQUAL "none") if (debugger STREQUAL "none")