diff options
author | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-14 00:32:08 +0100 |
---|---|---|
committer | Nicolas Werner <nicolas.werner@hotmail.de> | 2020-02-14 00:46:06 +0100 |
commit | c8bc89d0fa93937a6729a95fa04c3c011bc749d4 (patch) | |
tree | f776821112de5b170a3a397bbd2d94dd18b28f8a /cmake/FindLMDB.cmake | |
parent | Merge pull request #114 from adasauce/image-overlay-fix (diff) | |
download | nheko-c8bc89d0fa93937a6729a95fa04c3c011bc749d4.tar.xz |
try out flatpak nightly build
Diffstat (limited to 'cmake/FindLMDB.cmake')
-rw-r--r-- | cmake/FindLMDB.cmake | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/cmake/FindLMDB.cmake b/cmake/FindLMDB.cmake new file mode 100644 index 00000000..372dc7a5 --- /dev/null +++ b/cmake/FindLMDB.cmake @@ -0,0 +1,15 @@ +# +# Find the lmdb library & include dir. +# + +find_path (LMDB_INCLUDE_DIR NAMES lmdb.h PATHS "$ENV{LMDB_DIR}/include") +find_library (LMDB_LIBRARY NAMES lmdb PATHS "$ENV{LMDB_DIR}/lib" ) +include(FindPackageHandleStandardArgs) +find_package_handle_standard_args(LMDB DEFAULT_MSG LMDB_INCLUDE_DIR LMDB_LIBRARY) + + +add_library(lmdb INTERFACE IMPORTED GLOBAL) +target_include_directories(lmdb INTERFACE ${LMDB_INCLUDE_DIR}) +target_link_libraries(lmdb INTERFACE ${LMDB_LIBRARY}) + +add_library(liblmdb::lmdb ALIAS lmdb) |