diff options
Diffstat (limited to 'cmake/FindSNAPPY.cmake')
-rw-r--r-- | cmake/FindSNAPPY.cmake | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/cmake/FindSNAPPY.cmake b/cmake/FindSNAPPY.cmake new file mode 100644 index 00000000..f50e154c --- /dev/null +++ b/cmake/FindSNAPPY.cmake @@ -0,0 +1,13 @@ +# Find SNAPPY - A fast compressor/decompressor +# +# This module defines +# SNAPPY_FOUND - whether the snappy library was found +# SNAPPY_LIBRARIES - the snappy library +# SNAPPY_INCLUDE_DIR - the include path of the snappy library +# + +find_path (SNAPPY_INCLUDE_DIR NAMES snappy.h) +find_library (SNAPPY_LIBRARIES NAMES snappy) + +include (FindPackageHandleStandardArgs) +find_package_handle_standard_args (SNAPPY DEFAULT_MSG SNAPPY_LIBRARIES SNAPPY_INCLUDE_DIR) |