mirror of
https://github.com/cemu-project/Cemu.git
synced 2024-11-23 03:19:48 +00:00
f51a51df3b
Improved, fixed and streamlined cmake files. Optionally use system libraries instead of vcpkg (-DENABLE_VCPKG=OFF)
21 lines
483 B
CMake
21 lines
483 B
CMake
# SPDX-FileCopyrightText: 2022 Andrea Pappacoda <andrea@pappacoda.it>
|
|
# SPDX-License-Identifier: ISC
|
|
|
|
find_package(PkgConfig)
|
|
|
|
if (PKG_CONFIG_FOUND)
|
|
pkg_search_module(zarchive IMPORTED_TARGET GLOBAL zarchive)
|
|
if (zarchive_FOUND)
|
|
add_library(ZArchive::zarchive ALIAS PkgConfig::zarchive)
|
|
endif()
|
|
endif()
|
|
|
|
include(FindPackageHandleStandardArgs)
|
|
find_package_handle_standard_args(ZArchive
|
|
REQUIRED_VARS
|
|
zarchive_LINK_LIBRARIES
|
|
zarchive_FOUND
|
|
VERSION_VAR
|
|
zarchive_VERSION
|
|
)
|