mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 22:34:18 +01:00
7a174bc306
git-svn-id: file:///svn/toku/tokudb@50988 c7de825b-a66e-492c-adef-691d508d4ae1
21 lines
1.1 KiB
CMake
21 lines
1.1 KiB
CMake
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO)
|
|
|
|
set(utils tokudb_gen tokudb_load tokudb_dump)
|
|
foreach(util ${utils})
|
|
add_executable(${util} ${util})
|
|
set_target_properties(${util} PROPERTIES
|
|
COMPILE_DEFINITIONS "IS_TDB=1;USE_TDB=1;TDB_IS_STATIC=1")
|
|
target_link_libraries(${util} ${LIBTOKUDB}_static ft_static z lzma ${LIBTOKUPORTABILITY}_static ${CMAKE_THREAD_LIBS_INIT} ${EXTRA_SYSTEM_LIBS})
|
|
|
|
add_common_options_to_binary_targets(${util})
|
|
|
|
if(BDB_FOUND)
|
|
add_executable(${util}.bdb ${util})
|
|
set_property(TARGET ${util}.bdb APPEND PROPERTY
|
|
COMPILE_DEFINITIONS "IS_TDB=0;USE_BDB=1;TOKU_ALLOW_DEPRECATED")
|
|
set_target_properties(${util}.bdb PROPERTIES
|
|
INCLUDE_DIRECTORIES "${BDB_INCLUDE_DIR};${CMAKE_CURRENT_BINARY_DIR}/../toku_include;${CMAKE_CURRENT_SOURCE_DIR}/../toku_include;${CMAKE_CURRENT_SOURCE_DIR}/../portability;${CMAKE_CURRENT_SOURCE_DIR}/..")
|
|
target_link_libraries(${util}.bdb ${LIBTOKUPORTABILITY} ${BDB_LIBRARIES})
|
|
add_common_options_to_binary_targets(${util}.bdb)
|
|
endif()
|
|
endforeach(util)
|