mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-19 19:14:48 +00:00
Some checks are pending
Build and Release / reuse (push) Waiting to run
Build and Release / clang-format (push) Waiting to run
Build and Release / get-info (push) Waiting to run
Build and Release / windows-sdl (push) Blocked by required conditions
Build and Release / windows-qt (push) Blocked by required conditions
Build and Release / macos-sdl (push) Blocked by required conditions
Build and Release / macos-qt (push) Blocked by required conditions
Build and Release / linux-sdl (push) Blocked by required conditions
Build and Release / linux-qt (push) Blocked by required conditions
Build and Release / linux-sdl-gcc (push) Blocked by required conditions
Build and Release / linux-qt-gcc (push) Blocked by required conditions
Build and Release / pre-release (push) Blocked by required conditions
15 lines
461 B
CMake
15 lines
461 B
CMake
# SPDX-FileCopyrightText: Copyright 2025 shadPS4 Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
find_package(PkgConfig QUIET)
|
|
pkg_search_module(LIBUSB QUIET IMPORTED_TARGET libusb-1.0)
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(libusb
|
|
REQUIRED_VARS LIBUSB_LINK_LIBRARIES
|
|
VERSION_VAR LIBUSB_VERSION
|
|
)
|
|
|
|
if (libusb_FOUND AND NOT TARGET libusb::usb)
|
|
add_library(libusb::usb ALIAS PkgConfig::LIBUSB)
|
|
endif()
|