cmake: add hpp header as target dependency (#4)

target should depend on protoName.hpp otherwise it'll be a build error
in case of deletion of this file
This commit is contained in:
Yaroslav 2024-05-13 18:56:29 +05:00 committed by GitHub
parent e1e94b12d5
commit 65c2636484
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ function(hyprwayland_protocol targets protoName protoPath outputPath)
)
foreach(target ${targets})
target_sources(${target} PRIVATE "${outputPath}/${protoName}.cpp")
target_sources(${target} PRIVATE "${outputPath}/${protoName}.hpp")
endforeach()
endfunction()