@ -39,7 +39,7 @@ if(POLICY CMP0042)
cmake_policy ( SET CMP0042 NEW )
endif ( )
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE _DIR}/cmake/modules/" )
list ( APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST _DIR}/cmake/modules/" )
option ( WITH_JEMALLOC "build with JeMalloc" OFF )
option ( WITH_SNAPPY "build with SNAPPY" OFF )
@ -720,7 +720,7 @@ if(NOT WIN32 OR ROCKSDB_INSTALL_ON_WINDOWS)
set ( package_config_destination ${ CMAKE_INSTALL_LIBDIR } /cmake/rocksdb )
configure_package_config_file (
$ { C M A K E _ S O U R C E _ D I R } / c m a k e / R o c k s D B C o n f i g . c m a k e . i n R o c k s D B C o n f i g . c m a k e
$ { C M A K E _ C U R R E N T _ L I S T _ D I R } / c m a k e / R o c k s D B C o n f i g . c m a k e . i n R o c k s D B C o n f i g . c m a k e
I N S T A L L _ D E S T I N A T I O N $ { p a c k a g e _ c o n f i g _ d e s t i n a t i o n }
)
@ -950,17 +950,18 @@ if(WITH_TESTS)
foreach ( sourcefile ${ TEST_EXES } )
get_filename_component ( exename ${ sourcefile } NAME_WE )
add_executable ( ${ exename } ${ ARTIFACT_SUFFIX } ${ sourcefile }
add_executable ( ${ CMAKE_PROJECT_NAME } _ ${ exename } ${ ARTIFACT_SUFFIX } ${ sourcefile }
$ < T A R G E T _ O B J E C T S : t e s t h a r n e s s > )
set_target_properties ( ${ exename } ${ ARTIFACT_SUFFIX }
set_target_properties ( ${ CMAKE_PROJECT_NAME } _ ${ exename } ${ ARTIFACT_SUFFIX }
P R O P E R T I E S E X C L U D E _ F R O M _ D E F A U L T _ B U I L D _ R E L E A S E 1
E X C L U D E _ F R O M _ D E F A U L T _ B U I L D _ M I N R E L E A S E 1
E X C L U D E _ F R O M _ D E F A U L T _ B U I L D _ R E L W I T H D E B I N F O 1
O U T P U T _ N A M E $ { e x e n a m e } $ { A R T I F A C T _ S U F F I X }
)
target_link_libraries ( ${ exename } ${ ARTIFACT_SUFFIX } testutillib ${ ARTIFACT_SUFFIX } gtest ${ LIBS } )
target_link_libraries ( ${ CMAKE_PROJECT_NAME } _ ${ exename } ${ ARTIFACT_SUFFIX } testutillib ${ ARTIFACT_SUFFIX } gtest ${ LIBS } )
if ( NOT "${exename}" MATCHES "db_sanity_test" )
add_test ( NAME ${ exename } COMMAND ${ exename } ${ ARTIFACT_SUFFIX } )
add_dependencies ( check ${ exename } ${ ARTIFACT_SUFFIX } )
add_dependencies ( check ${ CMAKE_PROJECT_NAME } _ ${ exename } ${ ARTIFACT_SUFFIX } )
endif ( )
endforeach ( sourcefile ${ TEST_EXES } )