2015-09-09 23:00:58 -04:00
|
|
|
include(posix/px4_impl_posix)
|
|
|
|
|
|
2016-08-18 15:37:23 -04:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-native.cmake)
|
2015-09-10 17:44:27 -04:00
|
|
|
|
2015-09-10 23:53:25 -04:00
|
|
|
set(config_module_list
|
|
|
|
|
drivers/boards/sitl
|
2016-04-23 02:20:11 -04:00
|
|
|
drivers/device
|
|
|
|
|
drivers/gps
|
2015-09-20 16:41:11 +02:00
|
|
|
drivers/pwm_out_sim
|
2016-08-26 09:00:11 +02:00
|
|
|
drivers/vmount
|
2016-04-23 02:20:11 -04:00
|
|
|
|
2015-09-10 23:53:25 -04:00
|
|
|
platforms/common
|
|
|
|
|
platforms/posix/drivers/accelsim
|
2016-04-23 02:20:11 -04:00
|
|
|
platforms/posix/drivers/adcsim
|
2015-09-10 23:53:25 -04:00
|
|
|
platforms/posix/drivers/airspeedsim
|
|
|
|
|
platforms/posix/drivers/barosim
|
2016-04-23 02:20:11 -04:00
|
|
|
platforms/posix/drivers/gpssim
|
2015-09-10 23:53:25 -04:00
|
|
|
platforms/posix/drivers/gyrosim
|
2015-11-18 11:58:21 -08:00
|
|
|
platforms/posix/drivers/ledsim
|
2016-04-23 02:20:11 -04:00
|
|
|
platforms/posix/drivers/rgbledsim
|
|
|
|
|
platforms/posix/drivers/tonealrmsim
|
|
|
|
|
platforms/posix/px4_layer
|
|
|
|
|
platforms/posix/work_queue
|
|
|
|
|
|
2015-09-10 23:53:25 -04:00
|
|
|
systemcmds/esc_calib
|
2016-04-23 02:20:11 -04:00
|
|
|
systemcmds/mixer
|
|
|
|
|
systemcmds/param
|
|
|
|
|
systemcmds/perf
|
2015-09-10 23:53:25 -04:00
|
|
|
systemcmds/reboot
|
2016-05-10 13:31:04 +02:00
|
|
|
systemcmds/sd_bench
|
2015-09-10 23:53:25 -04:00
|
|
|
systemcmds/topic_listener
|
2016-04-23 02:20:11 -04:00
|
|
|
systemcmds/ver
|
2016-05-28 12:10:19 +02:00
|
|
|
systemcmds/top
|
2016-04-07 20:17:51 +02:00
|
|
|
systemcmds/motor_ramp
|
2016-04-23 02:20:11 -04:00
|
|
|
|
2015-09-10 23:53:25 -04:00
|
|
|
modules/attitude_estimator_q
|
2016-04-23 02:20:11 -04:00
|
|
|
modules/commander
|
|
|
|
|
modules/dataman
|
2016-01-25 22:42:53 +01:00
|
|
|
modules/ekf2
|
2015-09-10 23:53:25 -04:00
|
|
|
modules/fw_att_control
|
|
|
|
|
modules/fw_pos_control_l1
|
2016-04-23 02:20:11 -04:00
|
|
|
modules/land_detector
|
2016-04-25 17:36:13 -04:00
|
|
|
modules/logger
|
2016-04-23 02:20:11 -04:00
|
|
|
modules/mavlink
|
|
|
|
|
modules/mc_att_control
|
|
|
|
|
modules/mc_pos_control
|
|
|
|
|
modules/navigator
|
|
|
|
|
modules/param
|
|
|
|
|
modules/position_estimator_inav
|
2016-05-13 22:04:28 +02:00
|
|
|
modules/local_position_estimator
|
2016-06-10 12:43:07 +02:00
|
|
|
modules/replay
|
2016-04-23 02:20:11 -04:00
|
|
|
modules/sdlog2
|
|
|
|
|
modules/sensors
|
|
|
|
|
modules/simulator
|
|
|
|
|
modules/systemlib
|
|
|
|
|
modules/systemlib/mixer
|
|
|
|
|
modules/uORB
|
|
|
|
|
modules/vtol_att_control
|
2016-05-19 00:19:53 -04:00
|
|
|
|
2016-04-14 14:07:28 -04:00
|
|
|
lib/controllib
|
2015-09-10 23:53:25 -04:00
|
|
|
lib/conversion
|
2016-04-23 02:20:11 -04:00
|
|
|
lib/DriverFramework/framework
|
2015-09-10 23:53:25 -04:00
|
|
|
lib/ecl
|
|
|
|
|
lib/external_lgpl
|
|
|
|
|
lib/geo
|
|
|
|
|
lib/geo_lookup
|
|
|
|
|
lib/launchdetection
|
2016-04-23 02:20:11 -04:00
|
|
|
lib/mathlib
|
|
|
|
|
lib/mathlib/math/filter
|
2016-07-29 13:27:58 +02:00
|
|
|
lib/rc
|
2015-11-06 22:48:44 +01:00
|
|
|
lib/runway_takeoff
|
2015-12-11 10:57:41 +01:00
|
|
|
lib/tailsitter_recovery
|
2016-04-23 02:20:11 -04:00
|
|
|
lib/terrain_estimation
|
2016-12-20 14:59:21 +01:00
|
|
|
lib/version
|
2016-04-23 02:20:11 -04:00
|
|
|
|
2015-12-23 09:12:16 +01:00
|
|
|
examples/px4_simple_app
|
2016-08-06 11:57:50 +02:00
|
|
|
examples/mc_att_control_multiplatform
|
|
|
|
|
examples/mc_pos_control_multiplatform
|
|
|
|
|
examples/ekf_att_pos_estimator
|
|
|
|
|
examples/attitude_estimator_ekf
|
2016-09-27 18:17:55 +02:00
|
|
|
examples/fixedwing_control
|
2016-05-19 00:19:53 -04:00
|
|
|
|
|
|
|
|
#
|
|
|
|
|
# Testing
|
|
|
|
|
#
|
2016-07-29 13:27:58 +02:00
|
|
|
drivers/sf0x/sf0x_tests
|
|
|
|
|
lib/rc/rc_tests
|
2016-05-19 00:19:53 -04:00
|
|
|
modules/commander/commander_tests
|
2016-09-13 10:06:19 +02:00
|
|
|
modules/mc_pos_control/mc_pos_control_tests
|
2016-05-19 00:19:53 -04:00
|
|
|
modules/controllib_test
|
2017-01-01 23:52:00 -05:00
|
|
|
modules/mavlink/mavlink_tests
|
2016-05-19 00:19:53 -04:00
|
|
|
modules/unit_test
|
|
|
|
|
modules/uORB/uORB_tests
|
2016-09-26 21:11:35 +02:00
|
|
|
systemcmds/tests
|
2016-05-19 00:19:53 -04:00
|
|
|
|
2015-09-10 23:53:25 -04:00
|
|
|
)
|
2015-09-09 23:00:58 -04:00
|
|
|
|
2015-09-10 23:53:25 -04:00
|
|
|
set(config_extra_builtin_cmds
|
2015-09-12 00:24:16 -04:00
|
|
|
serdis
|
|
|
|
|
sercon
|
2015-09-10 23:53:25 -04:00
|
|
|
)
|
2015-09-10 17:44:27 -04:00
|
|
|
|
2016-09-01 23:15:32 +02:00
|
|
|
# Default config_sitl_rcS_dir (posix_sitl_default), this is overwritten later
|
|
|
|
|
# for the config posix_sitl_efk2 and set again, explicitly, for posix_sitl_lpe,
|
|
|
|
|
# which are based on posix_sitl_default.
|
2016-08-25 21:47:45 +02:00
|
|
|
set(config_sitl_rcS_dir
|
2016-12-25 17:02:15 +01:00
|
|
|
posix-configs/SITL/init/lpe
|
2016-09-01 23:15:32 +02:00
|
|
|
CACHE INTERNAL "init script dir for sitl"
|
2015-10-24 10:57:46 -04:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(config_sitl_viewer
|
|
|
|
|
jmavsim
|
|
|
|
|
CACHE STRING "viewer for sitl"
|
|
|
|
|
)
|
|
|
|
|
set_property(CACHE config_sitl_viewer
|
|
|
|
|
PROPERTY STRINGS "jmavsim;none")
|
|
|
|
|
|
|
|
|
|
set(config_sitl_debugger
|
|
|
|
|
disable
|
|
|
|
|
CACHE STRING "debugger for sitl"
|
|
|
|
|
)
|
|
|
|
|
set_property(CACHE config_sitl_debugger
|
|
|
|
|
PROPERTY STRINGS "disable;gdb;lldb")
|
2016-06-30 15:17:44 +02:00
|
|
|
|
|
|
|
|
# If the environment variable 'replay' is defined, we are building with replay
|
|
|
|
|
# support. In this case, we enable the orb publisher rules.
|
|
|
|
|
set(REPLAY_FILE "$ENV{replay}")
|
|
|
|
|
if(REPLAY_FILE)
|
|
|
|
|
message("Building with uorb publisher rules support")
|
|
|
|
|
add_definitions(-DORB_USE_PUBLISHER_RULES)
|
|
|
|
|
endif()
|
|
|
|
|
|