summaryrefslogtreecommitdiffhomepage
path: root/video-ps3eye
diff options
context:
space:
mode:
authorR. van Twisk <ries.van.twisk@ing.com>2019-12-20 16:17:27 +0100
committerR. van Twisk <ries.van.twisk@ing.com>2019-12-20 16:17:27 +0100
commit338b007abe10faa7ecf6004f1162b7a85d30f8f0 (patch)
tree2a757db0a9920922eb00dcedcdf0b08a2e935825 /video-ps3eye
parent96316119fd57b1d5acdfc0ff51e1766a9311f11f (diff)
Build ps3eye
Diffstat (limited to 'video-ps3eye')
-rw-r--r--video-ps3eye/CMakeLists.txt10
1 files changed, 3 insertions, 7 deletions
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)