From 338b007abe10faa7ecf6004f1162b7a85d30f8f0 Mon Sep 17 00:00:00 2001 From: "R. van Twisk" Date: Fri, 20 Dec 2019 16:17:27 +0100 Subject: Build ps3eye --- video-ps3eye/CMakeLists.txt | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'video-ps3eye') diff --git a/video-ps3eye/CMakeLists.txt b/video-ps3eye/CMakeLists.txt index 2fac5f9c..5adcf2b0 100644 --- a/video-ps3eye/CMakeLists.txt +++ b/video-ps3eye/CMakeLists.txt @@ -4,13 +4,9 @@ if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/ps3eye-driver/CMakeLists.txt") add_subdirectory("ps3eye-driver") if(NOT MSVC) - if(PKG_CONFIG_FOUND) - pkg_check_modules(libusb "libusb-1.0" QUIET) - endif() - if(libusb_FOUND) - include_directories(SYSTEM ${libusb_INCLUDE_DIRS}) - link_libraries(${libusb_LIBRARIES}) - endif() + find_package(LibUSB REQUIRED) + include_directories(SYSTEM ${LibUSB_INCLUDE_DIRS}) + link_libraries(${LibUSB_LIBRARIES} -pthread) else() set(SDK_LIBUSB CACHE PATH "") if(SDK_LIBUSB) -- cgit v1.2.3