aboutsummaryrefslogtreecommitdiff
path: root/cmake/modules/FindXkbcommon.cmake
blob: 1bb2543ef3761dd66c8e3e345017799fa4593e89 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# FindXkbcommon
# -----------
# Finds the libxkbcommon library
#
# This will define the following variables::
#
# XKBCOMMON_FOUND        - the system has libxkbcommon
# XKBCOMMON_INCLUDE_DIRS - the libxkbcommon include directory
# XKBCOMMON_LIBRARIES    - the libxkbcommon libraries
# XKBCOMMON_DEFINITIONS  - the libxkbcommon definitions

pkg_check_modules (XKBCOMMON xkbcommon)

include (FindPackageHandleStandardArgs)
find_package_handle_standard_args (Xkbcommon
  REQUIRED_VARS
  XKBCOMMON_FOUND)

set(XKBCOMMON_DEFINITIONS -DHAVE_XKBCOMMON=1)
set(XKBCOMMON_LIBRARIES ${XKBCOMMON_LDFLAGS})
set(XKBCOMMON_INCLUDE_DIRS ${XKBCOMMON_INCLUDEDIR})