vcpkg/ports/folly/FindSnappy.cmake

14 lines
366 B
CMake
Raw Normal View History

2018-03-29 10:28:42 +08:00
find_path(SNAPPY_INCLUDE_DIR snappy.h)
find_library(SNAPPY_LIBRARY_DEBUG NAMES snappyd)
find_library(SNAPPY_LIBRARY_RELEASE NAMES snappy)
2018-03-29 10:28:42 +08:00
include(SelectLibraryConfigurations)
select_library_configurations(SNAPPY)
2018-03-29 10:28:42 +08:00
include(FindPackageHandleStandardArgs)
FIND_PACKAGE_HANDLE_STANDARD_ARGS(
SNAPPY DEFAULT_MSG
SNAPPY_LIBRARY SNAPPY_INCLUDE_DIR
)