2013-04-17 00:00:58 -04:00
|
|
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO)
|
2013-04-17 00:00:26 -04:00
|
|
|
|
2014-07-08 15:15:10 -04:00
|
|
|
set(tools tokudb_dump tokuftdump tdb_logprint tdb-recover ftverify ba_replay)
|
2014-07-03 12:36:25 -04:00
|
|
|
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
|
|
|
|
)
|
2013-04-17 00:00:25 -04:00
|
|
|
|