From 8fa10fda8186b6cdd10430e4d6cb4ef8db1ee9a0 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Fri, 5 Jul 2019 13:04:58 +0200 Subject: video/ps3eye: stub --- video-ps3eye/CMakeLists.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'video-ps3eye/CMakeLists.txt') diff --git a/video-ps3eye/CMakeLists.txt b/video-ps3eye/CMakeLists.txt index 5e45eb4a..6510d8c7 100644 --- a/video-ps3eye/CMakeLists.txt +++ b/video-ps3eye/CMakeLists.txt @@ -2,6 +2,23 @@ add_compile_definitions(PS3EYE_DEBUG) 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() +else() + set(SDK_LIBUSB CACHE PATH "") + if(SDK_LIBUSB) + set(libusb_FOUND TRUE) + link_directories("${SDK_LIBUSB}") + include_directories(SYSTEM "${SDK_LIBUSB}") + endif() +endif() + if(TARGET ps3eye-driver) otr_module(video-ps3eye) if(WIN32) -- cgit v1.2.3