File: FindXKeyboardConfig.cmake

package info (click to toggle)
fcitx5-configtool 5.1.10-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,512 kB
  • sloc: cpp: 9,083; javascript: 31; makefile: 3; sh: 2
file content (20 lines) | stat: -rw-r--r-- 592 bytes parent folder | download | duplicates (11)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
find_package(PkgConfig)

pkg_check_modules(PKG_XKEYBOARDCONFIG QUIET xkeyboard-config)

pkg_get_variable(XKEYBOARDCONFIG_XKBBASE xkeyboard-config xkb_base)
pkg_get_variable(XKEYBOARDCONFIG_DATADIR xkeyboard-config datadir)

set(XKEYBOARDCONFIG_VERSION ${PKG_XKEYBOARDCONFIG_VERSION})
mark_as_advanced(XKEYBOARDCONFIG_VERSION)

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(XKeyboardConfig
    FOUND_VAR
        XKEYBOARDCONFIG_FOUND
    REQUIRED_VARS
        XKEYBOARDCONFIG_XKBBASE
        XKEYBOARDCONFIG_DATADIR
    VERSION_VAR
        XKEYBOARDCONFIG_VERSION
)