cmake topic_listener: make topic_listener.cpp depend on msg_gen

This makes sure the .cpp file is regenerated on .msg file changes
This commit is contained in:
Beat Küng 2016-05-16 07:51:57 +02:00 committed by Lorenz Meier
parent a268845f1d
commit f6f47e3362
1 changed files with 1 additions and 1 deletions

View File

@ -33,6 +33,7 @@
add_custom_command(OUTPUT topic_listener.cpp
COMMAND ${PYTHON_EXECUTABLE} ${CMAKE_SOURCE_DIR}/Tools/generate_listener.py ${CMAKE_SOURCE_DIR} > topic_listener.cpp
DEPENDS msg_gen
)
add_custom_target(generate_topic_listener
@ -51,6 +52,5 @@ px4_add_module(
DEPENDS
platforms__common
generate_topic_listener
msg_gen
)
# vim: set noet ft=cmake fenc=utf-8 ff=unix :