summaryrefslogtreecommitdiff
path: root/tools/cmake/modules/FindSDLLibUSB.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'tools/cmake/modules/FindSDLLibUSB.cmake')
-rw-r--r--tools/cmake/modules/FindSDLLibUSB.cmake19
1 files changed, 0 insertions, 19 deletions
diff --git a/tools/cmake/modules/FindSDLLibUSB.cmake b/tools/cmake/modules/FindSDLLibUSB.cmake
deleted file mode 100644
index 0082d62315..0000000000
--- a/tools/cmake/modules/FindSDLLibUSB.cmake
+++ /dev/null
@@ -1,19 +0,0 @@
-# - Try to find libusb
-#
-# LIBUSB_INCLUDE_DIRECTORY - the libusb include directory
-# LIBUSB_LIBRARIES - libusb libraries to link
-
-get_os(OS)
-if(${OS} STREQUAL "posix")
- set(LIBUSB_INCLUDE_DIRECTORY /usr/include/libusb-1.0)
- set(LIBUSB_LIBRARIES usb-1.0 udev)
-elseif(${OS} STREQUAL "win")
- get_arch(ARCH)
- if(${ARCH} STREQUAL "x86")
- set(LIBUSB_DIR ${CMAKE_SOURCE_DIR}/build/libusbx_win_x86)
- elseif(${ARCH} STREQUAL "x64")
- set(LIBUSB_DIR ${CMAKE_SOURCE_DIR}/build/libusbx_win_x64)
- endif()
- set(LIBUSB_INCLUDE_DIRECTORY ${LIBUSB_DIR}/libusb)
- set(LIBUSB_LIBRARIES ${LIBUSB_DIR}/bin/libusb-1.0.lib)
-endif()