cmake: avoid GLOB for *.msg files and use an explicit .msg file enumeration

This makes sure that adding & removing of .msg files is handled properly
by the build system.
This commit is contained in:
Beat Küng
2016-05-16 09:22:34 +02:00
committed by Lorenz Meier
parent f6f47e3362
commit 7f65e01d07
4 changed files with 141 additions and 1 deletions

View File

@@ -295,7 +295,7 @@ add_definitions(${definitions})
#=============================================================================
# source code generation
#
file(GLOB msg_files msg/*.msg)
add_subdirectory(msg)
px4_generate_messages(TARGET msg_gen
MSG_FILES ${msg_files}
OS ${OS}