Warning, /pim/sink/cmake/modules/Findzstd.cmake is written in an unsupported language. File is not indexed.
0001 # - Find zstd 0002 # Find the zstd compression library and includes 0003 # 0004 # zstd_INCLUDE_DIRS - where to find zstd.h, etc. 0005 # zstd_LIBRARIES - List of libraries when using zstd. 0006 # zstd_FOUND - True if zstd found. 0007 0008 find_path(zstd_INCLUDE_DIRS 0009 NAMES zstd.h 0010 HINTS ${zstd_ROOT_DIR}/include) 0011 0012 find_library(zstd_LIBRARIES 0013 NAMES zstd 0014 HINTS ${zstd_ROOT_DIR}/lib) 0015 0016 include(FindPackageHandleStandardArgs) 0017 find_package_handle_standard_args(zstd DEFAULT_MSG zstd_LIBRARIES zstd_INCLUDE_DIRS) 0018 0019 mark_as_advanced( 0020 zstd_LIBRARIES 0021 zstd_INCLUDE_DIRS) 0022 0023 if(zstd_FOUND AND NOT (TARGET zstd::zstd)) 0024 add_library (zstd::zstd UNKNOWN IMPORTED) 0025 set_target_properties(zstd::zstd 0026 PROPERTIES 0027 IMPORTED_LOCATION ${zstd_LIBRARIES} 0028 INTERFACE_INCLUDE_DIRECTORIES ${zstd_INCLUDE_DIRS}) 0029 endif()