代码拉取完成,页面将自动刷新
#
# Tries to find Snappy headers and libraries.
#
# Usage of this module as follows:
#
# find_package(Snappy)
#
# Variables used by this module:
#
# SNAPPY_ROOT_DIR Set this variable to the root installation of
# Snappy if the module has problems finding
# the proper installation path.
#
# Variables defined by this module:
#
# SNAPPY_LIBRARIES The Snappy libraries
# SNAPPY_INCLUDE_DIR The location of Snappy headers
# Find Snappy Library
find_package(Snappy REQUIRED)
# Set Library Alias
set(SNAPPY_PKG libsnappy)
# find a directory containing the NAMES
find_path(
SNAPPY_INCLUDE_DIR
NAMES snappy.h
HINTS ${SNAPPY_ROOT_DIR}/include)
message(STATUS "Snappy Libray Found")
# Search for Custom Library Location
find_library(
SNAPPY_LIBRARIES
NAMES snappy
HINTS ${SNAPPY_ROOT_DIR}/lib
)
include(FindPackageHandleStandardArgs)
# Finds the package(s), package(s) are considered found if all variables listed contain
# valid results, e.g. valid file paths.
find_package_handle_standard_args(
Snappy DEFAULT_MSG
SNAPPY_LIBRARIES
SNAPPY_INCLUDE_DIR
)
message(STATUS "SNAPPY_LIBRARY: ${SNAPPY_LIBRARIES}")
message(STATUS "SNAPPY_INCLUDE_DIR: ${SNAPPY_INCLUDE_DIR}")
include_directories(${SNAPPY_INCLUDE_DIR})
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。