mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-06 00:02:44 +02:00
Uses tags for a bunch of deps that can use them Also adds a bunmch of scripts to tools/cpm, notably for checking hashes and checking for updates. TODO for the future: - CI target to check hashes - Weekly CI to check for updates Need to get that other CI runner up additional stuff - Ports gentoo fixes - makes solaris work (TODO: sdl2) - way better docs - properly separates CPMUtil as a standalone project Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/2666 Reviewed-by: Lizzie <lizzie@eden-emu.dev> Reviewed-by: MaranBr <maranbr@eden-emu.dev>
25 lines
835 B
CMake
25 lines
835 B
CMake
# SPDX-FileCopyrightText: 2022 yuzu Emulator Project
|
|
# SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
find_package(PkgConfig QUIET)
|
|
pkg_search_module(ZSTD QUIET IMPORTED_TARGET libzstd)
|
|
find_package_handle_standard_args(zstd
|
|
REQUIRED_VARS ZSTD_LINK_LIBRARIES
|
|
VERSION_VAR ZSTD_VERSION
|
|
)
|
|
|
|
if (zstd_FOUND AND NOT TARGET zstd::zstd)
|
|
if (TARGET zstd::libzstd_shared)
|
|
add_library(zstd::zstd ALIAS zstd::libzstd_shared)
|
|
add_library(zstd::libzstd ALIAS zstd::libzstd_shared)
|
|
elseif (TARGET zstd::libzstd_static)
|
|
add_library(zstd::zstd ALIAS zstd::libzstd_static)
|
|
add_library(zstd::libzstd ALIAS zstd::libzstd_static)
|
|
else()
|
|
add_library(zstd::zstd ALIAS PkgConfig::ZSTD)
|
|
add_library(zstd::libzstd ALIAS PkgConfig::ZSTD)
|
|
endif()
|
|
endif()
|