forked from Archive/PX4-Autopilot
Merge pull request #37 from mcharleb/cmake-mc-3
cmake: added support for topic_listener.cpp
This commit is contained in:
commit
1afa965f45
|
@ -18,6 +18,7 @@ function(px4_set_config_modules out_module_list)
|
|||
systemcmds/ver
|
||||
systemcmds/esc_calib
|
||||
systemcmds/reboot
|
||||
systemcmds/topic_listener
|
||||
modules/uORB
|
||||
modules/systemlib
|
||||
modules/systemlib/mixer
|
||||
|
|
|
@ -16,7 +16,7 @@ set(directories
|
|||
./motor_test
|
||||
./esc_calib
|
||||
./perf
|
||||
# ./topic_listener
|
||||
./topic_listener
|
||||
./dumpfile
|
||||
./pwm
|
||||
)
|
||||
|
|
|
@ -30,6 +30,14 @@
|
|||
# POSSIBILITY OF SUCH DAMAGE.
|
||||
#
|
||||
############################################################################
|
||||
|
||||
add_custom_command(OUTPUT topic_listener.cpp
|
||||
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/Tools/generate_listener.py ${CMAKE_SOURCE_DIR} > topic_listener.cpp
|
||||
)
|
||||
|
||||
add_custom_target(generate_topic_listener
|
||||
DEPENDS topic_listener.cpp)
|
||||
|
||||
px4_add_module(
|
||||
MODULE systemcmds__topic_listener
|
||||
MAIN listener
|
||||
|
@ -40,5 +48,6 @@ px4_add_module(
|
|||
topic_listener.cpp
|
||||
DEPENDS
|
||||
platforms__common
|
||||
generate_topic_listener
|
||||
)
|
||||
# vim: set noet ft=cmake fenc=utf-8 ff=unix :
|
||||
|
|
Loading…
Reference in New Issue