mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2026-08-14 04:24:31 +00:00
8648c27cbb
Since 3.25 introduced `LINUX` and `BSD`, use them, and standardize other platforms to that style Signed-off-by: crueter <crueter@eden-emu.dev> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/4183 Reviewed-by: Samuel <lizzie@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
24 lines
626 B
CMake
24 lines
626 B
CMake
# SPDX-FileCopyrightText: Copyright 2026 Eden Emulator Project
|
|
# SPDX-License-Identifier: GPL-3.0-or-later
|
|
|
|
# SPDX-FileCopyrightText: 2022 Alexandre Bouvier <contact@amb.tf>
|
|
#
|
|
# SPDX-License-Identifier: GPL-3.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 (MSYS2)
|
|
FixMsysPath(PkgConfig::LIBUSB)
|
|
endif()
|
|
|
|
if (libusb_FOUND AND NOT TARGET libusb::usb)
|
|
add_library(libusb::usb ALIAS PkgConfig::LIBUSB)
|
|
endif()
|