File tree 2 files changed +6
-2
lines changed
2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.6.3 FATAL_ERROR)
2
2
3
+ list (APPEND HIDAPI_PUBLIC_HEADERS "hidapi_libusb.h" )
4
+
3
5
add_library (hidapi_libusb
4
6
${HIDAPI_PUBLIC_HEADERS}
5
7
hid.c
6
- hidapi_libusb.h
7
8
)
8
9
target_link_libraries (hidapi_libusb PUBLIC hidapi_include)
9
10
@@ -24,7 +25,7 @@ set_target_properties(hidapi_libusb
24
25
OUTPUT_NAME "hidapi-libusb"
25
26
VERSION ${PROJECT_VERSION}
26
27
SOVERSION ${PROJECT_VERSION_MAJOR}
27
- PUBLIC_HEADER "${HIDAPI_PUBLIC_HEADERS} ;hidapi_libusb.h "
28
+ PUBLIC_HEADER "${HIDAPI_PUBLIC_HEADERS} "
28
29
)
29
30
30
31
# compatibility with find_package()
Original file line number Diff line number Diff line change @@ -125,6 +125,9 @@ else()
125
125
set (HIDAPI_WITH_LIBUSB ON )
126
126
endif ()
127
127
if (HIDAPI_WITH_LIBUSB)
128
+ target_include_directories (hidapi_include INTERFACE
129
+ "$<BUILD_INTERFACE:${PROJECT_ROOT} /libusb>"
130
+ )
128
131
add_subdirectory ("${PROJECT_ROOT} /libusb" libusb)
129
132
list (APPEND EXPORT_COMPONENTS libusb)
130
133
if (NOT EXPORT_ALIAS)
You can’t perform that action at this time.
0 commit comments