diff options
author | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 |
---|---|---|
committer | Allen Winter <allen.winter@kdab.com> | 2011-06-30 17:36:45 -0400 |
commit | d2b2c90a06bf1f4a21df196430d1f95856900410 (patch) | |
tree | aba9d2a48d7b2ac1e960e1b68218394524c7e6a8 /attic/modules/FindXKB.cmake | |
parent | e15ffacc69242c89107afbfda6f8ece9f2b56633 (diff) | |
download | extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.gz extra-cmake-modules-d2b2c90a06bf1f4a21df196430d1f95856900410.tar.bz2 |
Move the modules, modules-test and systeminfo subdirs into 'attic'
Diffstat (limited to 'attic/modules/FindXKB.cmake')
-rw-r--r-- | attic/modules/FindXKB.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/attic/modules/FindXKB.cmake b/attic/modules/FindXKB.cmake new file mode 100644 index 00000000..a91078ad --- /dev/null +++ b/attic/modules/FindXKB.cmake @@ -0,0 +1,15 @@ +# + + find_path(X11_XKB_INCLUDE_PATH X11/XKBlib.h "${X11_INC_SEARCH_PATH}") + if (X11_XKB_INCLUDE_PATH) + MACRO_PUSH_REQUIRED_VARS() + set(CMAKE_REQUIRED_LIBRARIES "${X11_LIBRARIES} ${CMAKE_REQUIRED_LIBRARIES}") + check_library_exists(X11 XkbLockModifiers "" HAVE_XKB) + MACRO_POP_REQUIRED_VARS() + if (HAVE_XKB) + set(XKB_FOUND TRUE) + endif (HAVE_XKB) + endif (X11_XKB_INCLUDE_PATH) + + + |