Clean some wayland dependencies.

This commit is contained in:
James Grogan 2022-11-30 12:30:20 +00:00
parent 339a789b8a
commit b2917e7e5d
7 changed files with 81 additions and 63 deletions

View file

@ -36,9 +36,10 @@ list(APPEND TestFiles
)
endif()
if (${HAS_WAYLAND})
list(APPEND TestFiles
windows/TestWaylandWindow.cpp
find_package(Wayland QUIET)
if(WAYLAND_FOUND)
list(APPEND TestFiles
windows/TestWaylandWindow.cpp
)
endif()
@ -52,7 +53,7 @@ endif()
find_package(PkgConfig)
pkg_check_modules(DBUS dbus-1)
pkg_check_modules(DBUS dbus-1 QUIET)
if (DBUS_FOUND)
include_directories(${DBUS_INCLUDE_DIRS})
link_directories(${DBUS_LIBRARY_DIRS})