BUILD: Refactor libusb submodule (#10169)

* relocate module files
* fix cmake errors
* moved & updated libusb MSVC build file
This commit is contained in:
polar
2021-04-29 16:50:18 +01:00
committed by GitHub
parent 5724d2d4c7
commit dece8a69f6
16 changed files with 154 additions and 154 deletions
+20
View File
@@ -0,0 +1,20 @@
# IOKit_INCLUDE_DIR
# IOKit_LIBRARIES
# IOKit_FOUND
include(LibFindMacros)
# IOKit depends on CoreFoundation
find_package(CoreFoundation REQUIRED)
find_path(IOKit_INCLUDE_DIR
IOKitLib.h
PATH_SUFFIXES IOKit
)
find_library(IOKit_LIBRARY
NAMES IOKit
)
set(IOKit_PROCESS_INCLUDES IOKit_INCLUDE_DIR CoreFoundation_INCLUDE_DIR)
set(IOKit_PROCESS_LIBS IOKit_LIBRARY CoreFoundation_LIBRARIES)
libfind_process(IOKit)