test/pts: recreate gatt .h file if .gatt is changed in CMake build

This commit is contained in:
Matthias Ringwald 2021-04-29 20:50:08 +02:00
parent 7daf1469d8
commit 824847eaaf

View File

@ -198,6 +198,7 @@ foreach(EXAMPLE_FILE ${EXAMPLES_C})
message("PTS Tool: ${EXAMPLE} -- with GATT DB")
add_custom_command(
OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
DEPENDS ${CMAKE_SOURCE_DIR}/${EXAMPLE}.gatt
COMMAND ${CMAKE_SOURCE_DIR}/../../tool/compile_gatt.py
ARGS ${CMAKE_SOURCE_DIR}/${EXAMPLE}.gatt ${CMAKE_CURRENT_BINARY_DIR}/${EXAMPLE}.h
)