From 3b734f0d6b9e28c1f2c4ae54e3f46e573e02f4a5 Mon Sep 17 00:00:00 2001 From: Andreas Grois Date: Fri, 9 Mar 2018 21:36:10 +0100 Subject: Initial Commit --- glfw-3.2.1/CMake/modules/FindMir.cmake | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 glfw-3.2.1/CMake/modules/FindMir.cmake (limited to 'glfw-3.2.1/CMake/modules/FindMir.cmake') diff --git a/glfw-3.2.1/CMake/modules/FindMir.cmake b/glfw-3.2.1/CMake/modules/FindMir.cmake new file mode 100644 index 0000000..b1a495b --- /dev/null +++ b/glfw-3.2.1/CMake/modules/FindMir.cmake @@ -0,0 +1,18 @@ +# Try to find Mir on a Unix system +# +# This will define: +# +# MIR_LIBRARIES - Link these to use Wayland +# MIR_INCLUDE_DIR - Include directory for Wayland +# +# Copyright (c) 2014 Brandon Schaefer + +if (NOT WIN32) + + find_package (PkgConfig) + pkg_check_modules (PKG_MIR QUIET mirclient) + + set (MIR_INCLUDE_DIR ${PKG_MIR_INCLUDE_DIRS}) + set (MIR_LIBRARIES ${PKG_MIR_LIBRARIES}) + +endif () -- cgit v1.2.3