Skip to content
Snippets Groups Projects
Commit 1afa965f authored by James Goppert's avatar James Goppert
Browse files

Merge pull request #37 from mcharleb/cmake-mc-3

cmake: added support for topic_listener.cpp
parents 521b8ed4 5a59d7d7
No related branches found
No related tags found
No related merge requests found
......@@ -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 :
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment