aboutsummaryrefslogtreecommitdiff
path: root/glfw-3.2.1/CMake/modules/FindMir.cmake
blob: b1a495ba191db856c27e790cecd100a7288eeb89 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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 <brandon.schaefer@canonical.com>

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 ()