forked from kevinlin311tw/Caffe-DeepBinaryCode
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindSnappy.cmake
More file actions
33 lines (29 loc) · 700 Bytes
/
FindSnappy.cmake
File metadata and controls
33 lines (29 loc) · 700 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# Find the Snappy libraries
#
# The following variables are optionally searched for defaults
# Snappy_ROOT_DIR: Base directory where all Snappy components are found
#
# The following are set after configuration is done:
# Snappy_FOUND
# Snappy_INCLUDE_DIRS
# Snappy_LIBS
find_path(SNAPPY_INCLUDE_DIR
NAMES snappy.h
HINTS ${SNAPPY_ROOT_DIR}
${SNAPPY_ROOT_DIR}/include
)
find_library(SNAPPY_LIBS
NAMES snappy
HINTS ${SNAPPY_ROOT_DIR}
${SNAPPY_ROOT_DIR}/lib
)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(Snappy
DEFAULT_MSG
SNAPPY_LIBS
SNAPPY_INCLUDE_DIR
)
mark_as_advanced(
SNAPPY_LIBS
SNAPPY_INCLUDE_DIR
)