diff options
author | Jose Fonseca <jfonseca@vmware.com> | 2015-03-13 10:25:48 +0000 |
---|---|---|
committer | Jose Fonseca <jfonseca@vmware.com> | 2015-03-13 12:25:36 +0000 |
commit | acbb31285dbba0019434e52bf684c7dcd3f159e0 (patch) | |
tree | 804fd571b72ec6e4cc950783a2e64561022e7d53 /cmake | |
parent | 09531388e2aea19018ef03487d37a12547eb9325 (diff) |
cmake: Actually add FindSNAPPY.cmake.
Diffstat (limited to '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) |