@ -523,7 +523,6 @@ endif()
include_directories ( ${ PROJECT_SOURCE_DIR } )
include_directories ( ${ PROJECT_SOURCE_DIR } )
include_directories ( ${ PROJECT_SOURCE_DIR } /include )
include_directories ( ${ PROJECT_SOURCE_DIR } /include )
include_directories ( SYSTEM ${ PROJECT_SOURCE_DIR } /third-party/gtest-1.8.1/fused-src )
if ( WITH_FOLLY_DISTRIBUTED_MUTEX )
if ( WITH_FOLLY_DISTRIBUTED_MUTEX )
include_directories ( ${ PROJECT_SOURCE_DIR } /third-party/folly )
include_directories ( ${ PROJECT_SOURCE_DIR } /third-party/folly )
endif ( )
endif ( )
@ -890,6 +889,16 @@ else()
endif ( )
endif ( )
option ( WITH_JNI "build with JNI" OFF )
option ( WITH_JNI "build with JNI" OFF )
# T e s t s a r e e x c l u d e d f r o m R e l e a s e b u i l d s
CMAKE_DEPENDENT_OPTION ( WITH_TESTS "build with tests" ON
" C M A K E _ B U I L D _ T Y P E S T R E Q U A L D e b u g " O F F )
option ( WITH_BENCHMARK_TOOLS "build with benchmarks" ON )
option ( WITH_CORE_TOOLS "build with ldb and sst_dump" ON )
option ( WITH_TOOLS "build with tools" ON )
if ( WITH_TESTS OR WITH_BENCHMARK_TOOLS OR WITH_TOOLS OR WITH_JNI OR JNI )
include_directories ( SYSTEM ${ PROJECT_SOURCE_DIR } /third-party/gtest-1.8.1/fused-src )
endif ( )
if ( WITH_JNI OR JNI )
if ( WITH_JNI OR JNI )
message ( STATUS "JNI library is enabled" )
message ( STATUS "JNI library is enabled" )
add_subdirectory ( ${ CMAKE_CURRENT_SOURCE_DIR } /java )
add_subdirectory ( ${ CMAKE_CURRENT_SOURCE_DIR } /java )
@ -965,15 +974,11 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS)
)
)
endif ( )
endif ( )
# T e s t s a r e e x c l u d e d f r o m R e l e a s e b u i l d s
CMAKE_DEPENDENT_OPTION ( WITH_TESTS "build with tests" ON
" C M A K E _ B U I L D _ T Y P E S T R E Q U A L D e b u g " O F F )
if ( WITH_TESTS )
if ( WITH_TESTS )
add_subdirectory ( third-party/gtest-1.8.1/fused-src/gtest )
add_subdirectory ( third-party/gtest-1.8.1/fused-src/gtest )
add_library ( testharness STATIC
add_library ( testharness STATIC
t e s t _ u t i l / t e s t h a r n e s s . c c )
t e s t _ u t i l / t e s t h a r n e s s . c c )
target_link_libraries ( testharness gtest )
target_link_libraries ( testharness gtest )
set ( TESTS
set ( TESTS
c a c h e / c a c h e _ t e s t . c c
c a c h e / c a c h e _ t e s t . c c
c a c h e / l r u _ c a c h e _ t e s t . c c
c a c h e / l r u _ c a c h e _ t e s t . c c
@ -1206,7 +1211,6 @@ if(WITH_TESTS)
endif ( )
endif ( )
endif ( )
endif ( )
option ( WITH_BENCHMARK_TOOLS "build with benchmarks" ON )
if ( WITH_BENCHMARK_TOOLS )
if ( WITH_BENCHMARK_TOOLS )
add_executable ( db_bench
add_executable ( db_bench
t o o l s / d b _ b e n c h . c c
t o o l s / d b _ b e n c h . c c
@ -1245,8 +1249,6 @@ if(WITH_BENCHMARK_TOOLS)
$ { R O C K S D B _ L I B } )
$ { R O C K S D B _ L I B } )
endif ( )
endif ( )
option ( WITH_CORE_TOOLS "build with ldb and sst_dump" ON )
option ( WITH_TOOLS "build with tools" ON )
if ( WITH_CORE_TOOLS OR WITH_TOOLS )
if ( WITH_CORE_TOOLS OR WITH_TOOLS )
add_subdirectory ( tools )
add_subdirectory ( tools )
add_custom_target ( core_tools
add_custom_target ( core_tools