File: FindXKBCommon.cmake

package info (click to toggle)
fcitx 1%3A4.2.9.9-2
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 19,800 kB
  • sloc: ansic: 134,151; cpp: 7,280; sh: 2,778; python: 800; xml: 345; makefile: 42
file content (44 lines) | stat: -rw-r--r-- 1,186 bytes parent folder | download | duplicates (25)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

include(ECMFindModuleHelpersStub)

ecm_find_package_version_check(XKBCommon)

# Note that this list needs to be ordered such that any component
# appears after its dependencies
set(XKBCommon_known_components
    XKBCommon
    X11)

set(XKBCommon_XKBCommon_component_deps)
set(XKBCommon_XKBCommon_pkg_config "xkbcommon")
set(XKBCommon_XKBCommon_lib "xkbcommon")
set(XKBCommon_XKBCommon_header "xkbcommon/xkbcommon.h")

set(XKBCommon_X11_component_deps XKBCommon)
set(XKBCommon_X11_pkg_config "xkbcommon-x11")
set(XKBCommon_X11_lib "xkbcommon-x11")
set(XKBCommon_X11_header "xkbcommon/xkbcommon-x11.h")

ecm_find_package_parse_components(XKBCommon
    RESULT_VAR XKBCommon_components
    KNOWN_COMPONENTS ${XKBCommon_known_components}
)
ecm_find_package_handle_library_components(XKBCommon
    COMPONENTS ${XKBCommon_components}
)

find_package_handle_standard_args(XKBCommon
    FOUND_VAR
        XKBCommon_FOUND
    REQUIRED_VARS
        XKBCommon_LIBRARIES
    VERSION_VAR
        XKBCommon_VERSION
    HANDLE_COMPONENTS
)

include(FeatureSummary)
set_package_properties(XKBCommon PROPERTIES
    URL "http://xkbcommon.org"
    DESCRIPTION "Keyboard handling library using XKB data"
)