mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 15:24:16 +01:00
d9a440ee26
git-svn-id: file:///svn/toku/tokudb@52748 c7de825b-a66e-492c-adef-691d508d4ae1
15 lines
482 B
CMake
15 lines
482 B
CMake
if(BUILD_TESTING)
|
|
function(add_locktree_test bin)
|
|
add_toku_test(locktree ${bin} ${ARGN})
|
|
endfunction(add_locktree_test)
|
|
|
|
file(GLOB srcs *.cc)
|
|
foreach(src ${srcs})
|
|
get_filename_component(base ${src} NAME_WE)
|
|
|
|
add_executable(${base} ${base})
|
|
add_space_separated_property(TARGET ${base} COMPILE_FLAGS -fvisibility=hidden)
|
|
target_link_libraries(${base} locktree ft ${LIBTOKUPORTABILITY})
|
|
add_locktree_test(${base})
|
|
endforeach(src)
|
|
endif(BUILD_TESTING)
|