Skip to content

Commit

Permalink
FT-297 Move tools to tools/
Browse files Browse the repository at this point in the history
  • Loading branch information
esmet committed Jul 3, 2014
1 parent 157e180 commit e91c66c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 23 deletions.
17 changes: 0 additions & 17 deletions ft/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,4 @@ target_link_libraries(ft LINK_PRIVATE util_static lzma ${LIBTOKUPORTABILITY})
target_link_libraries(ft LINK_PUBLIC z)
target_link_libraries(ft_static LINK_PRIVATE lzma)

## build the bins in this directory
foreach(tool tokuftdump tdb_logprint tdb-recover ftverify)
add_executable(${tool} ${tool})
add_dependencies(${tool} install_tdb_h)
target_link_libraries(${tool} ft_static util_static z lzma ${LIBTOKUPORTABILITY}_static ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
add_space_separated_property(TARGET ${tool} COMPILE_FLAGS -fvisibility=hidden)
endforeach(tool)

# link in math.h library just for this tool.
target_link_libraries(ftverify m)

install(
TARGETS tokuftdump
DESTINATION bin
COMPONENT tokukv_tools
)

add_subdirectory(tests)
23 changes: 17 additions & 6 deletions tools/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO)

set(utils tokudb_dump)
foreach(util ${utils})
add_executable(${util} ${util})
target_link_libraries(${util} ${LIBTOKUDB}_static ft_static z lzma ${LIBTOKUPORTABILITY}_static ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
set(tools tokudb_dump tokuftdump tdb_logprint tdb-recover ftverify)
foreach(tool ${tools})
add_executable(${tool} ${tool})
add_dependencies(${tool} install_tdb_h)
target_link_libraries(${tool} ${LIBTOKUDB}_static ft_static z lzma ${LIBTOKUPORTABILITY}_static ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})

add_space_separated_property(TARGET ${tool} COMPILE_FLAGS -fvisibility=hidden)
endforeach(tool)

# link in math.h library just for this tool.
target_link_libraries(ftverify m)

install(
TARGETS tokuftdump
DESTINATION bin
COMPONENT tokukv_tools
)

add_space_separated_property(TARGET ${util} COMPILE_FLAGS -fvisibility=hidden)
endforeach(util)
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit e91c66c

Please sign in to comment.