-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
482 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# - Try to find libevdev | ||
# Once done this will define | ||
# LIBEVDEV_FOUND - System has libevdev | ||
# LIBEVDEV_INCLUDE_DIRS - The libevdev include directories | ||
# LIBEVDEV_LIBRARIES - The libraries needed to use libevdev | ||
|
||
find_package(PkgConfig) | ||
pkg_check_modules(PC_LIBEVDEV QUIET libevdev) | ||
|
||
FIND_PATH( | ||
LIBEVDEV_INCLUDE_DIR libevdev/libevdev.h | ||
HINTS ${PC_LIBEVDEV_INCLUDEDIR} ${PC_LIBEVDEV_INCLUDE_DIRS} | ||
/usr/include | ||
/usr/local/include | ||
${LIBEVDEV_PATH_INCLUDES} | ||
) | ||
|
||
FIND_LIBRARY( | ||
LIBEVDEV_LIBRARY | ||
NAMES evdev libevdev | ||
HINTS ${PC_LIBEVDEV_LIBDIR} ${PC_LIBEVDEV_LIBRARY_DIRS} | ||
PATHS ${ADDITIONAL_LIBRARY_PATHS} | ||
${LIBEVDEV_PATH_LIB} | ||
) | ||
|
||
set(LIBEVDEV_LIBRARIES ${LIBEVDEV_LIBRARY} ) | ||
set(LIBEVDEV_INCLUDE_DIRS ${LIBEVDEV_INCLUDE_DIR} ) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(libevdev DEFAULT_MSG | ||
LIBEVDEV_LIBRARY LIBEVDEV_INCLUDE_DIR) | ||
|
||
mark_as_advanced(LIBEVDEV_INCLUDE_DIR LIBEVDEV_LIBRARY ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# - Try to find LIBUDEV | ||
# Once done this will define | ||
# LIBUDEV_FOUND - System has LIBUDEV | ||
# LIBUDEV_INCLUDE_DIRS - The LIBUDEV include directories | ||
# LIBUDEV_LIBRARIES - The libraries needed to use LIBUDEV | ||
|
||
FIND_PATH( | ||
LIBUDEV_INCLUDE_DIR libudev.h | ||
/usr/include | ||
/usr/local/include | ||
${LIBUDEV_PATH_INCLUDES} | ||
) | ||
|
||
FIND_LIBRARY( | ||
LIBUDEV_LIBRARY | ||
NAMES udev libudev | ||
PATHS ${ADDITIONAL_LIBRARY_PATHS} | ||
${LIBUDEV_PATH_LIB} | ||
) | ||
|
||
set(LIBUDEV_LIBRARIES ${LIBUDEV_LIBRARY} ) | ||
set(LIBUDEV_INCLUDE_DIRS ${LIBUDEV_INCLUDE_DIR} ) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(LIBUDEV DEFAULT_MSG | ||
LIBUDEV_LIBRARY LIBUDEV_INCLUDE_DIR) | ||
|
||
mark_as_advanced(LIBUDEV_INCLUDE_DIR LIBUDEV_LIBRARY ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.