Commit graph

2 commits

Author SHA1 Message Date
Yaroslav
65c2636484
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
2024-05-13 14:56:29 +01:00
Yaroslav
abbade08f1
cmake: add hyprwayland-scanner-config (#1)
This allows us to add wayland protocol dependencies to other cmake-based
projects with minimum extra code.

Example:

find_package(hyprwayland-scanner REQUIRED)
add_executable(target main.c)
hyprwayland_protocol(
    target
    "linux-dmabuf-v1"
    "${WAYLAND_PROTOCOLS}/linux-dmabuf/"
    "${CMAKE_SOURCE_DIR}/protocols"
)
2024-04-28 13:48:42 +01:00