summaryrefslogtreecommitdiffstats
path: root/cmake/modules/FindWaylandpp.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'cmake/modules/FindWaylandpp.cmake')
-rw-r--r--cmake/modules/FindWaylandpp.cmake9
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
13pkg_check_modules(PC_WAYLANDPP wayland-client++ wayland-egl++ wayland-cursor++ QUIET) 13pkg_check_modules(PC_WAYLANDPP wayland-client++ wayland-egl++ wayland-cursor++ QUIET)
14pkg_check_modules(PC_WAYLANDPP_SCANNER wayland-scanner++ QUIET) 14
15if(PC_WAYLANDPP_FOUND) 15if(PC_WAYLANDPP_FOUND)
16 pkg_get_variable(PC_WAYLANDPP_PKGDATADIR wayland-client++ pkgdatadir) 16 pkg_get_variable(PC_WAYLANDPP_PKGDATADIR wayland-client++ pkgdatadir)
17else()
18 message(SEND_ERROR "wayland-client++ not found via pkg-config")
17endif() 19endif()
20
21pkg_check_modules(PC_WAYLANDPP_SCANNER wayland-scanner++ QUIET)
22
18if(PC_WAYLANDPP_SCANNER_FOUND) 23if(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)
25else()
26 message(SEND_ERROR "wayland-scanner++ not found via pkg-config")
20endif() 27endif()
21 28
22find_path(WAYLANDPP_INCLUDE_DIR wayland-client.hpp PATHS ${PC_WAYLANDPP_INCLUDEDIR}) 29find_path(WAYLANDPP_INCLUDE_DIR wayland-client.hpp PATHS ${PC_WAYLANDPP_INCLUDEDIR})