File CMakeLists.txt of Package failed_hyprpaper

Ensure that the Wayland protocol files are correctly generated and included. Add the following lines to ensure proper inclusion of Wayland headers:

```cmake
find_package(PkgConfig REQUIRED)
pkg_check_modules(WAYLAND REQUIRED wayland-client)

include_directories(${WAYLAND_INCLUDE_DIRS})
link_directories(${WAYLAND_LIBRARY_DIRS})

add_custom_command(
    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/protocols/linux-dmabuf-v1-protocol.c
    COMMAND hyprwayland-scanner --client ${WAYLAND_PROTOCOLS_DIR}/stable/linux-dmabuf/linux-dmabuf-v1.xml ${CMAKE_CURRENT_BINARY_DIR}/protocols/
    DEPENDS hyprwayland-scanner
)

add_custom_command(
    OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/protocols/fractional-scale-v1-protocol.c
    COMMAND hyprwayland-scanner --client ${WAYLAND_PROTOCOLS_DIR}/staging/fractional-scale/fractional-scale-v1.xml ${CMAKE_CURRENT_BINARY_DIR}/protocols/
    DEPENDS hyprwayland-scanner
)

# Repeat similar commands for other protocols as needed

target_include_directories(hyprpaper PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/protocols)
target_link_libraries(hyprpaper PRIVATE ${WAYLAND_LIBRARIES})
```

---
openSUSE Build Service is sponsored by