1 Star 0 Fork 0

float996/aws-iot-fleetwise-edge

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
snappy.cmake 1.32 KB
一键复制 编辑 原始数据 按行查看 历史
Guilherme Melo 提交于 2023-01-19 19:52 +08:00 . Format most text files
#
# 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})
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/float996/aws-iot-fleetwise-edge.git
git@gitee.com:float996/aws-iot-fleetwise-edge.git
float996
aws-iot-fleetwise-edge
aws-iot-fleetwise-edge
main

搜索帮助