px4-firmware/cmake/configs/posix_sitl_default.cmake

205 lines
3.9 KiB
CMake
Raw Normal View History

2015-09-10 00:00:58 -03:00
set(CMAKE_TOOLCHAIN_FILE ${PX4_SOURCE_DIR}/cmake/toolchains/Toolchain-native.cmake)
2015-09-11 00:53:25 -03:00
set(config_module_list
2018-01-15 16:16:01 -04:00
#drivers/barometer
drivers/differential_pressure
drivers/distance_sensor
2018-01-12 17:20:00 -04:00
drivers/airspeed
drivers/boards
drivers/camera_trigger
2016-04-23 03:20:11 -03:00
drivers/device
drivers/gps
drivers/linux_gpio
2018-01-12 17:20:00 -04:00
drivers/pwm_out_sim
drivers/vmount
modules/sensors
2015-09-11 00:53:25 -03:00
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
platforms/posix/drivers/ledsim
2016-04-23 03:20:11 -03:00
platforms/posix/drivers/tonealrmsim
#
# System commands
#
#systemcmds/bl_update
#systemcmds/config
#systemcmds/dumpfile
2015-09-11 00:53:25 -03:00
systemcmds/esc_calib
systemcmds/led_control
2016-04-23 03:20:11 -03:00
systemcmds/mixer
systemcmds/motor_ramp
#systemcmds/mtd
#systemcmds/nshterm
2016-04-23 03:20:11 -03:00
systemcmds/param
systemcmds/perf
2017-02-18 10:39:48 -04:00
systemcmds/pwm
2015-09-11 00:53:25 -03:00
systemcmds/reboot
systemcmds/sd_bench
systemcmds/top
2015-09-11 00:53:25 -03:00
systemcmds/topic_listener
2016-04-23 03:20:11 -03:00
systemcmds/ver
#
# Testing
#
drivers/distance_sensor/sf0x/sf0x_tests
#drivers/test_ppm
lib/rc/rc_tests
modules/commander/commander_tests
lib/controllib/controllib_test
modules/mavlink/mavlink_tests
modules/mc_pos_control/mc_pos_control_tests
modules/uORB/uORB_tests
systemcmds/tests
2017-09-27 19:25:48 -03:00
platforms/posix/tests/hello
platforms/posix/tests/hrt_test
platforms/posix/tests/muorb
platforms/posix/tests/vcdev_test
platforms/posix/tests/wqueue
#
# General system control
#
2016-04-23 03:20:11 -03:00
modules/commander
modules/events
#modules/gpio_led
modules/land_detector
modules/load_mon
modules/mavlink
modules/navigator
modules/replay
modules/simulator
#modules/uavcan
#
# Estimation modules
#
modules/attitude_estimator_q
2016-01-25 17:42:53 -04:00
modules/ekf2
modules/local_position_estimator
modules/position_estimator_inav
#
# Vehicle Control
#
2015-09-11 00:53:25 -03:00
modules/fw_att_control
modules/fw_pos_control_l1
modules/gnd_att_control
modules/gnd_pos_control
2016-04-23 03:20:11 -03:00
modules/mc_att_control
modules/mc_pos_control
modules/vtol_att_control
#
# Logging
#
modules/logger
2016-04-23 03:20:11 -03:00
modules/sdlog2
#
# Library modules
#
modules/dataman
modules/systemlib/param
2016-04-23 03:20:11 -03:00
modules/systemlib
modules/uORB
modules/landing_target_estimator
#
# Libraries
#
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/geo
lib/geo_lookup
lib/launchdetection
lib/led
lib/mixer
2016-04-23 03:20:11 -03:00
lib/mathlib
lib/mathlib/math/filter
2016-07-29 08:27:58 -03:00
lib/rc
lib/runway_takeoff
lib/tailsitter_recovery
2016-04-23 03:20:11 -03:00
lib/terrain_estimation
lib/version
2016-04-23 03:20:11 -03:00
#
# Platform
#
platforms/common
platforms/posix/px4_layer
platforms/posix/work_queue
#
# OBC challenge
#
2017-10-25 17:05:39 -03:00
examples/bottle_drop
#
# Rover apps
#
examples/rover_steering_control
#
# HippoCampus example (AUV from TUHH)
2017-09-04 08:03:57 -03:00
#
examples/uuv_example_app
2017-02-25 14:51:38 -04:00
#
# Segway
#
examples/segway
#
# Demo apps
#
# Tutorial code from
# https://px4.io/dev/px4_simple_app
examples/px4_simple_app
# Tutorial code from
# https://px4.io/dev/daemon
examples/px4_daemon_app
# Tutorial code from
# https://px4.io/dev/debug_values
examples/px4_mavlink_debug
# Tutorial code from
# https://px4.io/dev/example_fixedwing_control
examples/fixedwing_control
# Hardware test
#examples/hwtest
)
2015-09-10 00:00:58 -03:00
Partly cleanup and simplify cmake/configs/posix_sitl_* config files. While the config_sitl_rcS_dir is used more extensively (and actually only depending on the base cmake target), the variables config_sitl_viewer and config_sitl_debugger are just used to be passed on for the run_config target; config_sitl_debugger is even *always* 'disable'. Hence, they don't really need to be cached (INTERNAL or not). Before this patch FILEPATH was used instead of INTERNAL, but I doubt very much that that was intended. That only makes sense when cmake-gui would be used and then would pop-up a file browser to let the user pick a file (while really they need to pick a directory, so it's wrong either way). The ONLY reason caching would be used is when a developer edits the build_posix_sitl_*/CMakeCache.txt files, changes these values and then runs cmake in the build directory again, now overriding the values intended here. Nevertheless, I left in the caching. The main change in this commit (that theoretically has no real effect) is that I removed the duplicated maintenance of posix_sitl_broadcast.cmake. When that file was added, it was an exact copy of posix_sitl_default.cmake and is since not always maintained to remain the same. I don't think that difference is in anyway relevant for the broadcasting part though. Note that I think that something like that also holds for the posix_sitl_replay.cmake; it would be a lot better - maintenance-wise - when it was just derived from (or the same as) posix_sitl_default, I think.
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.
set(config_sitl_rcS_dir posix-configs/SITL/init/ekf2 CACHE INTERNAL "init script dir for sitl")
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")
# 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()