diff options
Diffstat (limited to 'cmake/modules/FindWaylandpp.cmake')
| -rw-r--r-- | cmake/modules/FindWaylandpp.cmake | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/cmake/modules/FindWaylandpp.cmake b/cmake/modules/FindWaylandpp.cmake index 3cfc282..ba229d7 100644 --- a/cmake/modules/FindWaylandpp.cmake +++ b/cmake/modules/FindWaylandpp.cmake | |||
| @@ -11,12 +11,19 @@ | |||
| 11 | # WAYLANDPP_SCANNER - path to wayland-scanner++ | 11 | # WAYLANDPP_SCANNER - path to wayland-scanner++ |
| 12 | 12 | ||
| 13 | pkg_check_modules(PC_WAYLANDPP wayland-client++ wayland-egl++ wayland-cursor++ QUIET) | 13 | pkg_check_modules(PC_WAYLANDPP wayland-client++ wayland-egl++ wayland-cursor++ QUIET) |
| 14 | pkg_check_modules(PC_WAYLANDPP_SCANNER wayland-scanner++ QUIET) | 14 | |
| 15 | if(PC_WAYLANDPP_FOUND) | 15 | if(PC_WAYLANDPP_FOUND) |
| 16 | pkg_get_variable(PC_WAYLANDPP_PKGDATADIR wayland-client++ pkgdatadir) | 16 | pkg_get_variable(PC_WAYLANDPP_PKGDATADIR wayland-client++ pkgdatadir) |
| 17 | else() | ||
| 18 | message(SEND_ERROR "wayland-client++ not found via pkg-config") | ||
| 17 | endif() | 19 | endif() |
| 20 | |||
| 21 | pkg_check_modules(PC_WAYLANDPP_SCANNER wayland-scanner++ QUIET) | ||
| 22 | |||
| 18 | if(PC_WAYLANDPP_SCANNER_FOUND) | 23 | if(PC_WAYLANDPP_SCANNER_FOUND) |
| 19 | pkg_get_variable(PC_WAYLANDPP_SCANNER wayland-scanner++ wayland_scannerpp) | 24 | pkg_get_variable(PC_WAYLANDPP_SCANNER wayland-scanner++ wayland_scannerpp) |
| 25 | else() | ||
| 26 | message(SEND_ERROR "wayland-scanner++ not found via pkg-config") | ||
| 20 | endif() | 27 | endif() |
| 21 | 28 | ||
| 22 | find_path(WAYLANDPP_INCLUDE_DIR wayland-client.hpp PATHS ${PC_WAYLANDPP_INCLUDEDIR}) | 29 | find_path(WAYLANDPP_INCLUDE_DIR wayland-client.hpp PATHS ${PC_WAYLANDPP_INCLUDEDIR}) |
