transition to LMDBAL
This commit is contained in:
parent
69d797fe51
commit
81cf0f8d34
18 changed files with 76 additions and 42 deletions
|
@ -28,6 +28,7 @@ add_executable(squawk ${WIN32_FLAG} ${MACOSX_BUNDLE_FLAG})
|
|||
target_include_directories(squawk PRIVATE ${CMAKE_SOURCE_DIR})
|
||||
|
||||
option(SYSTEM_QXMPP "Use system qxmpp lib" ON)
|
||||
option(SYSTEM_LMDBAL "Use system lmdbal lib" ON)
|
||||
option(WITH_KWALLET "Build KWallet support module" ON)
|
||||
option(WITH_KIO "Build KIO support module" ON)
|
||||
option(WITH_KCONFIG "Build KConfig support module" ON)
|
||||
|
@ -148,14 +149,25 @@ else ()
|
|||
target_link_libraries(squawk PRIVATE QXmpp::QXmpp)
|
||||
endif ()
|
||||
|
||||
## LMDB
|
||||
#find_package(LMDB REQUIRED)
|
||||
## LMDBAL
|
||||
if (SYSTEM_LMDBAL)
|
||||
find_package(lmdbal CONFIG)
|
||||
if (NOT LMDBAL_FOUND)
|
||||
set(SYSTEM_LMDBAL OFF)
|
||||
message("LMDBAL package wasn't found, trying to build with bundled LMDBAL")
|
||||
else ()
|
||||
message("Building with system LMDBAL")
|
||||
endif ()
|
||||
endif()
|
||||
|
||||
if (NOT SYSTEM_LMDBAL)
|
||||
message("Building with bundled LMDBAL")
|
||||
set(BUILD_STATIC ON)
|
||||
add_subdirectory(external/lmdbal)
|
||||
add_library(LMDBAL::LMDBAL ALIAS LMDBAL)
|
||||
endif()
|
||||
|
||||
#TODO conditioning!
|
||||
add_subdirectory(external/storage)
|
||||
target_include_directories(squawk PRIVATE external/storage)
|
||||
target_link_libraries(squawk PRIVATE storage)
|
||||
target_link_libraries(squawk PRIVATE LMDBAL::LMDBAL)
|
||||
|
||||
# Linking
|
||||
target_link_libraries(squawk
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue