2015-09-10 00:00:58 -03:00
|
|
|
include(posix/px4_impl_posix)
|
|
|
|
|
2016-08-18 16:37:23 -03:00
|
|
|
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-native.cmake)
|
2015-09-10 18:44:27 -03:00
|
|
|
|
2015-09-11 00:53:25 -03:00
|
|
|
set(config_module_list
|
|
|
|
drivers/boards/sitl
|
2017-02-06 09:50:22 -04:00
|
|
|
drivers/camera_trigger
|
2016-04-23 03:20:11 -03:00
|
|
|
drivers/device
|
|
|
|
drivers/gps
|
2015-09-20 11:41:11 -03:00
|
|
|
drivers/pwm_out_sim
|
2016-08-26 04:00:11 -03:00
|
|
|
drivers/vmount
|
2016-04-23 03:20:11 -03:00
|
|
|
|
2015-09-11 00:53:25 -03:00
|
|
|
platforms/common
|
|
|
|
platforms/posix/drivers/accelsim
|
2016-04-23 03:20:11 -03:00
|
|
|
platforms/posix/drivers/adcsim
|
2015-09-11 00:53:25 -03:00
|
|
|
platforms/posix/drivers/airspeedsim
|
|
|
|
platforms/posix/drivers/barosim
|
2016-04-23 03:20:11 -03:00
|
|
|
platforms/posix/drivers/gpssim
|
2015-09-11 00:53:25 -03:00
|
|
|
platforms/posix/drivers/gyrosim
|
2015-11-18 15:58:21 -04:00
|
|
|
platforms/posix/drivers/ledsim
|
2016-04-23 03:20:11 -03:00
|
|
|
platforms/posix/drivers/rgbledsim
|
|
|
|
platforms/posix/drivers/tonealrmsim
|
|
|
|
platforms/posix/px4_layer
|
|
|
|
platforms/posix/work_queue
|
|
|
|
|
2015-09-11 00:53:25 -03:00
|
|
|
systemcmds/esc_calib
|
2016-04-23 03:20:11 -03:00
|
|
|
systemcmds/mixer
|
|
|
|
systemcmds/param
|
|
|
|
systemcmds/perf
|
2015-09-11 00:53:25 -03:00
|
|
|
systemcmds/reboot
|
2016-05-10 08:31:04 -03:00
|
|
|
systemcmds/sd_bench
|
2015-09-11 00:53:25 -03:00
|
|
|
systemcmds/topic_listener
|
2016-04-23 03:20:11 -03:00
|
|
|
systemcmds/ver
|
2016-05-28 07:10:19 -03:00
|
|
|
systemcmds/top
|
2016-04-07 15:17:51 -03:00
|
|
|
systemcmds/motor_ramp
|
2016-04-23 03:20:11 -03:00
|
|
|
|
2015-09-11 00:53:25 -03:00
|
|
|
modules/attitude_estimator_q
|
2016-04-23 03:20:11 -03:00
|
|
|
modules/commander
|
|
|
|
modules/dataman
|
2016-01-25 17:42:53 -04:00
|
|
|
modules/ekf2
|
2017-03-01 05:13:27 -04:00
|
|
|
modules/ekf2_replay
|
2017-02-03 08:43:17 -04:00
|
|
|
modules/events
|
2015-09-11 00:53:25 -03:00
|
|
|
modules/fw_att_control
|
|
|
|
modules/fw_pos_control_l1
|
2016-04-23 03:20:11 -03:00
|
|
|
modules/land_detector
|
2016-04-25 18:36:13 -03:00
|
|
|
modules/logger
|
2016-04-23 03:20:11 -03:00
|
|
|
modules/mavlink
|
|
|
|
modules/mc_att_control
|
|
|
|
modules/mc_pos_control
|
|
|
|
modules/navigator
|
|
|
|
modules/param
|
|
|
|
modules/position_estimator_inav
|
2016-05-13 17:04:28 -03:00
|
|
|
modules/local_position_estimator
|
2016-06-10 07:43:07 -03:00
|
|
|
modules/replay
|
2016-04-23 03:20:11 -03:00
|
|
|
modules/sdlog2
|
|
|
|
modules/sensors
|
|
|
|
modules/simulator
|
|
|
|
modules/systemlib
|
|
|
|
modules/systemlib/mixer
|
|
|
|
modules/uORB
|
|
|
|
modules/vtol_att_control
|
2016-05-19 01:19:53 -03:00
|
|
|
|
2016-04-14 15:07:28 -03:00
|
|
|
lib/controllib
|
2015-09-11 00:53:25 -03:00
|
|
|
lib/conversion
|
2016-04-23 03:20:11 -03:00
|
|
|
lib/DriverFramework/framework
|
2015-09-11 00:53:25 -03:00
|
|
|
lib/ecl
|
|
|
|
lib/external_lgpl
|
|
|
|
lib/geo
|
|
|
|
lib/geo_lookup
|
|
|
|
lib/launchdetection
|
2016-04-23 03:20:11 -03:00
|
|
|
lib/mathlib
|
|
|
|
lib/mathlib/math/filter
|
2016-07-29 08:27:58 -03:00
|
|
|
lib/rc
|
2015-11-06 17:48:44 -04:00
|
|
|
lib/runway_takeoff
|
2015-12-11 05:57:41 -04:00
|
|
|
lib/tailsitter_recovery
|
2016-04-23 03:20:11 -03:00
|
|
|
lib/terrain_estimation
|
2016-12-20 09:59:21 -04:00
|
|
|
lib/version
|
2016-04-23 03:20:11 -03:00
|
|
|
|
2015-12-23 04:12:16 -04:00
|
|
|
examples/px4_simple_app
|
2016-08-06 06:57:50 -03:00
|
|
|
examples/mc_att_control_multiplatform
|
|
|
|
examples/mc_pos_control_multiplatform
|
|
|
|
examples/ekf_att_pos_estimator
|
|
|
|
examples/attitude_estimator_ekf
|
2016-09-27 13:17:55 -03:00
|
|
|
examples/fixedwing_control
|
2016-05-19 01:19:53 -03:00
|
|
|
|
|
|
|
#
|
|
|
|
# Testing
|
|
|
|
#
|
2016-07-29 08:27:58 -03:00
|
|
|
drivers/sf0x/sf0x_tests
|
|
|
|
lib/rc/rc_tests
|
2016-05-19 01:19:53 -03:00
|
|
|
modules/commander/commander_tests
|
2016-09-13 05:06:19 -03:00
|
|
|
modules/mc_pos_control/mc_pos_control_tests
|
2016-05-19 01:19:53 -03:00
|
|
|
modules/controllib_test
|
2017-01-02 00:52:00 -04:00
|
|
|
modules/mavlink/mavlink_tests
|
2016-05-19 01:19:53 -03:00
|
|
|
modules/unit_test
|
|
|
|
modules/uORB/uORB_tests
|
2016-09-26 16:11:35 -03:00
|
|
|
systemcmds/tests
|
2016-05-19 01:19:53 -03:00
|
|
|
|
2015-09-11 00:53:25 -03:00
|
|
|
)
|
2015-09-10 00:00:58 -03:00
|
|
|
|
2015-09-11 00:53:25 -03:00
|
|
|
set(config_extra_builtin_cmds
|
2015-09-12 01:24:16 -03:00
|
|
|
serdis
|
|
|
|
sercon
|
2015-09-11 00:53:25 -03:00
|
|
|
)
|
2015-09-10 18:44:27 -03:00
|
|
|
|
2016-09-01 18:15:32 -03: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 16:47:45 -03:00
|
|
|
set(config_sitl_rcS_dir
|
2017-01-29 06:43:10 -04:00
|
|
|
posix-configs/SITL/init/ekf2
|
2016-09-01 18:15:32 -03:00
|
|
|
CACHE INTERNAL "init script dir for sitl"
|
2015-10-24 11:57:46 -03: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 10:17:44 -03: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()
|
|
|
|
|