2014-06-23 22:32:32 +00:00
|
|
|
# - Find LevelDB
|
|
|
|
#
|
2016-08-11 06:48:35 +00:00
|
|
|
# LEVELDB_INCLUDE_DIR - Where to find leveldb/db.h
|
|
|
|
# LEVELDB_LIBRARIES - List of libraries when using LevelDB.
|
2014-06-23 22:32:32 +00:00
|
|
|
# LEVELDB_FOUND - True if LevelDB found.
|
|
|
|
|
2016-08-11 06:48:35 +00:00
|
|
|
find_path(LEVELDB_INCLUDE_DIR leveldb/db.h
|
|
|
|
HINTS $ENV{LEVELDB_ROOT}/include
|
|
|
|
DOC "Path in which the file leveldb/db.h is located." )
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-08-11 06:48:35 +00:00
|
|
|
find_library(LEVELDB_LIBRARIES leveldb
|
|
|
|
HINTS $ENV{LEVELDB_ROOT}/lib
|
|
|
|
DOC "Path to leveldb library." )
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2016-08-11 06:48:35 +00:00
|
|
|
mark_as_advanced(LEVELDB_INCLUDE_DIR LEVELDB_LIBRARIES)
|
2014-06-23 22:32:32 +00:00
|
|
|
|
2015-09-21 15:20:19 +00:00
|
|
|
include(FindPackageHandleStandardArgs)
|
2016-08-11 06:48:35 +00:00
|
|
|
find_package_handle_standard_args(leveldb DEFAULT_MSG LEVELDB_LIBRARIES LEVELDB_INCLUDE_DIR)
|