mirror of
https://github.com/GerbilSoft/rom-properties.git
synced 2025-06-18 19:45:41 -04:00
23 lines
639 B
CMake
23 lines
639 B
CMake
# Find ZSTD libraries and headers.
|
|
# If found, the following variables will be defined:
|
|
# - ZSTD_FOUND: System has ZSTD.
|
|
# - ZSTD_INCLUDE_DIRS: ZSTD include directories.
|
|
# - ZSTD_LIBRARIES: ZSTD libraries.
|
|
# - ZSTD_DEFINITIONS: Compiler switches required for using ZSTD.
|
|
#
|
|
# In addition, a target ZSTD::zstd will be created with all of
|
|
# these definitions.
|
|
#
|
|
# References:
|
|
# - https://cmake.org/Wiki/CMake:How_To_Find_Libraries
|
|
# - http://francesco-cek.com/cmake-and-gtk-3-the-easy-way/
|
|
#
|
|
|
|
INCLUDE(FindLibraryPkgConfig)
|
|
FIND_LIBRARY_PKG_CONFIG(ZSTD
|
|
libzstd # pkgconfig
|
|
zstd.h # header
|
|
zstd # library
|
|
ZSTD::zstd # imported target
|
|
)
|