integrate BDB
This commit is contained in:
parent
7fa1d26d7b
commit
c57e586052
|
@ -45,6 +45,11 @@ if(${BUILD_WITH_ROCKSDB})
|
||||||
add_definitions(-DUSE_ROCKSDB)
|
add_definitions(-DUSE_ROCKSDB)
|
||||||
endif(${BUILD_WITH_ROCKSDB})
|
endif(${BUILD_WITH_ROCKSDB})
|
||||||
|
|
||||||
|
## bdb
|
||||||
|
if(${BUILD_WITH_BDB})
|
||||||
|
cat("${CMAKE_SUPPORT_DIR}/bdb_CMakeLists.txt.in" ${DEPS_TMP_FILE})
|
||||||
|
endif(${BUILD_WITH_DBD})
|
||||||
|
|
||||||
## lucene
|
## lucene
|
||||||
if(${BUILD_WITH_LUCENE})
|
if(${BUILD_WITH_LUCENE})
|
||||||
cat("${CMAKE_SUPPORT_DIR}/lucene_CMakeLists.txt.in" ${DEPS_TMP_FILE})
|
cat("${CMAKE_SUPPORT_DIR}/lucene_CMakeLists.txt.in" ${DEPS_TMP_FILE})
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
|
||||||
|
# bdb
|
||||||
|
ExternalProject_Add(bdb
|
||||||
|
GIT_REPOSITORY https://github.com/berkeleydb/libdb.git
|
||||||
|
GIT_TAG v5.3.28
|
||||||
|
SOURCE_DIR "${CMAKE_SOURCE_DIR}/deps/bdb"
|
||||||
|
BINARY_DIR "${CMAKE_SOURCE_DIR}/deps/bdb"
|
||||||
|
#BUILD_IN_SOURCE TRUE
|
||||||
|
CONFIGURE_COMMAND "./dist/configure"
|
||||||
|
BUILD_COMMAND "make"
|
||||||
|
INSTALL_COMMAND ""
|
||||||
|
TEST_COMMAND ""
|
||||||
|
)
|
|
@ -19,6 +19,12 @@ option(
|
||||||
ON
|
ON
|
||||||
)
|
)
|
||||||
|
|
||||||
|
option(
|
||||||
|
BUILD_WITH_BDB
|
||||||
|
"If build with BerkleyDB"
|
||||||
|
ON
|
||||||
|
)
|
||||||
|
|
||||||
option(
|
option(
|
||||||
BUILD_WITH_LUCENE
|
BUILD_WITH_LUCENE
|
||||||
"If build with lucene"
|
"If build with lucene"
|
||||||
|
|
Loading…
Reference in New Issue