If found, add PIGLIT_HAS_UDEV to CFLAGS and set the cmake variable of the same name.
Future tests for EGL_MESA_platform_gbm will use udev. Signed-off-by: Chad Versace <[email protected]> --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index bef9c35..73971f9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -111,6 +111,12 @@ IF(${CMAKE_SYSTEM_NAME} MATCHES "Linux") add_definitions(-DPIGLIT_HAS_GBM) endif(GBM_FOUND) + pkg_check_modules(UDEV QUIET libudev) + if(UDEV_FOUND) + set(PIGLIT_HAS_UDEV True) + add_definitions(-DPIGLIT_HAS_UDEV) + endif() + pkg_check_modules(WAYLAND QUIET wayland-client wayland-egl) if (WAYLAND_FOUND) set(PIGLIT_HAS_WAYLAND True) -- 1.8.5.3 _______________________________________________ Piglit mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/piglit
