2013-04-17 00:01:15 -04:00
|
|
|
if(BUILD_TESTING)
|
2013-04-17 00:01:28 -04:00
|
|
|
function(add_locktree_test bin)
|
|
|
|
add_toku_test(locktree ${bin} ${ARGN})
|
|
|
|
endfunction(add_locktree_test)
|
|
|
|
|
2013-04-17 00:01:15 -04:00
|
|
|
file(GLOB srcs *.cc)
|
|
|
|
foreach(src ${srcs})
|
|
|
|
get_filename_component(base ${src} NAME_WE)
|
|
|
|
|
2013-04-17 00:01:28 -04:00
|
|
|
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})
|
2013-04-17 00:01:15 -04:00
|
|
|
endforeach(src)
|
|
|
|
endif(BUILD_TESTING)
|