message (STATUS "Searching for leveldb...")

if (NOT WIN32)
	set (leveldb_SOURCE $ENV{leveldb_SOURCE} CACHE PATH "leveldb path")
	fixPath (leveldb_SOURCE)
	set (leveldb_SEARCH_PATHS ${leveldb_SOURCE} ${RADJAV_DEPENDENCIES})

	searchForHeader (leveldb leveldb/db.h "${leveldb_SEARCH_PATHS}" FALSE)
	searchForLibrary (leveldb leveldb leveldb "${leveldb_SEARCH_PATHS}")

	set (leveldb_INCLUDE ${leveldb_INCLUDE} "${leveldb_INCLUDE}/leveldb/helpers")

	hasLibBeenFound (leveldb)
endif ()

