summaryrefslogtreecommitdiff
path: root/cmake/FindZSTD.cmake
blob: 0fd7350132791865a847c46e11481924b3a99ac0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
find_path(
    ZSTD_INCLUDE_DIR
    NAMES "zstd.h"
)

find_library(
    ZSTD_LIBRARY
    NAMES zstd
)

set(ZSTD_LIBRARIES ${ZSTD_LIBRARY})

include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(
    ZSTD DEFAULT_MSG ZSTD_INCLUDE_DIR ZSTD_LIBRARIES)

mark_as_advanced(ZSTD_INCLUDE_DIR ZSTD_LIBRARIES ZSTD_FOUND)