mariadb/locktree/tests/CMakeLists.txt
Leif Walsh d9a440ee26 closes #5949 merge to main
git-svn-id: file:///svn/toku/tokudb@52748 c7de825b-a66e-492c-adef-691d508d4ae1
2013-04-17 00:01:28 -04:00

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)