Line
Link Here
|
0 |
-- cmake/FindSNAPPY.cmake |
0 |
++ cmake/FindSNAPPY.cmake |
Line 0
Link Here
|
|
|
1 |
# Find SNAPPY - A fast compressor/decompressor |
2 |
# |
3 |
# This module defines |
4 |
# SNAPPY_FOUND - whether the qsjon library was found |
5 |
# SNAPPY_LIBRARIES - the snappy library |
6 |
# SNAPPY_INCLUDE_DIR - the include path of the snappy library |
7 |
# |
8 |
|
9 |
if (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES) |
10 |
|
11 |
# Already in cache |
12 |
set (SNAPPY_FOUND TRUE) |
13 |
|
14 |
else (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES) |
15 |
|
16 |
find_library (SNAPPY_LIBRARIES |
17 |
NAMES |
18 |
snappy |
19 |
PATHS |
20 |
) |
21 |
|
22 |
find_path (SNAPPY_INCLUDE_DIR |
23 |
NAMES |
24 |
snappy.h |
25 |
PATHS |
26 |
) |
27 |
|
28 |
include(FindPackageHandleStandardArgs) |
29 |
find_package_handle_standard_args(SNAPPY DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR) |
30 |
|
31 |
endif (SNAPPY_INCLUDE_DIR AND SNAPPY_LIBRARIES) |