diff options
| author | 2009-08-20 03:42:52 +0200 | |
|---|---|---|
| committer | 2009-08-20 06:51:10 +0200 | |
| commit | 1a0c58e4062da7db73b4c08963f741cf016f6aa5 (patch) | |
| tree | b250f094e978d48622ecf652e28e9f3b68873893 /usbmuxd/Modules/FindUSB.cmake | |
| parent | f4854f3fd725b5ba49cd5157d941783cffa08c04 (diff) | |
| parent | 79ca4d9a3c3a82bb5a3f9be1ac7a2533c7a89b05 (diff) | |
| download | usbmuxd-1a0c58e4062da7db73b4c08963f741cf016f6aa5.tar.gz usbmuxd-1a0c58e4062da7db73b4c08963f741cf016f6aa5.tar.bz2 | |
Merge the two development histories
Diffstat (limited to 'usbmuxd/Modules/FindUSB.cmake')
| -rw-r--r-- | usbmuxd/Modules/FindUSB.cmake | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/usbmuxd/Modules/FindUSB.cmake b/usbmuxd/Modules/FindUSB.cmake deleted file mode 100644 index d562b98..0000000 --- a/usbmuxd/Modules/FindUSB.cmake +++ /dev/null | |||
| @@ -1,31 +0,0 @@ | |||
| 1 | # - Try to find libusb-1.0 | ||
| 2 | # Once done, this will define | ||
| 3 | # | ||
| 4 | # USB_FOUND - system has libusb-1.0 | ||
| 5 | # USB_INCLUDE_DIRS - the libusb-1.0 include directories | ||
| 6 | # USB_LIBRARIES - link these to use libusb-1.0 | ||
| 7 | |||
| 8 | include(LibFindMacros) | ||
| 9 | |||
| 10 | # Dependencies | ||
| 11 | |||
| 12 | # Use pkg-config to get hints about paths | ||
| 13 | libfind_pkg_check_modules(USB_PKGCONF libusb-1.0) | ||
| 14 | |||
| 15 | # Include dir | ||
| 16 | find_path(USB_INCLUDE_DIR | ||
| 17 | NAMES libusb.h | ||
| 18 | PATHS ${USB_PKGCONF_INCLUDE_DIRS} | ||
| 19 | ) | ||
| 20 | |||
| 21 | # Finally the library itself | ||
| 22 | find_library(USB_LIBRARY | ||
| 23 | NAMES usb-1.0 | ||
| 24 | PATHS ${USB_PKGCONF_LIBRARY_DIRS} | ||
| 25 | ) | ||
| 26 | |||
| 27 | # Set the include dir variables and the libraries and let libfind_process do the rest. | ||
| 28 | # NOTE: Singular variables for this library, plural for libraries this this lib depends on. | ||
| 29 | set(USB_PROCESS_INCLUDES USB_INCLUDE_DIR) | ||
| 30 | set(USB_PROCESS_LIBS USB_LIBRARY) | ||
| 31 | libfind_process(USB) | ||
