cmake: add generated files to a custom target (#5851)

This way, headers are only generated once .
This commit is contained in:
Anonymous Maarten
2022-06-26 23:34:30 +02:00
committed by GitHub
parent 787dc260a8
commit fa39f73552
2 changed files with 22 additions and 5 deletions

View File

@@ -632,6 +632,7 @@ macro(WaylandProtocolGen _SCANNER _CODE_MODE _XML _PROTL)
ARGS "${_CODE_MODE}" "${_XML}" "${_WAYLAND_PROT_C_CODE}"
)
list(APPEND SDL_GENERATED_HEADERS "${_WAYLAND_PROT_H_CODE}")
list(APPEND SOURCE_FILES "${_WAYLAND_PROT_C_CODE}")
endmacro()