mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2024-11-29 23:24:15 +01:00
cmake: pass libusb include directory as well
In file included from src/input_common/gcadapter/gc_adapter.cpp:8: src/./input_common/gcadapter/gc_adapter.h:11:10: fatal error: 'libusb.h' file not found #include <libusb.h> ^~~~~~~~~~
This commit is contained in:
parent
77bdd09aa2
commit
48ff15602e
@ -333,6 +333,7 @@ endif()
|
|||||||
find_package(LibUSB)
|
find_package(LibUSB)
|
||||||
if (NOT LIBUSB_FOUND)
|
if (NOT LIBUSB_FOUND)
|
||||||
add_subdirectory(externals/libusb)
|
add_subdirectory(externals/libusb)
|
||||||
|
set(LIBUSB_INCLUDE_DIR "")
|
||||||
set(LIBUSB_LIBRARIES usb)
|
set(LIBUSB_LIBRARIES usb)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
@ -30,6 +30,7 @@ if(SDL2_FOUND)
|
|||||||
target_compile_definitions(input_common PRIVATE HAVE_SDL2)
|
target_compile_definitions(input_common PRIVATE HAVE_SDL2)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
target_include_directories(input_common SYSTEM PUBLIC ${LIBUSB_INCLUDE_DIR})
|
||||||
target_link_libraries(input_common PUBLIC ${LIBUSB_LIBRARIES})
|
target_link_libraries(input_common PUBLIC ${LIBUSB_LIBRARIES})
|
||||||
|
|
||||||
create_target_directory_groups(input_common)
|
create_target_directory_groups(input_common)
|
||||||
|
Loading…
Reference in New Issue
Block a user