mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 23:04:20 +01:00
958c447641
git-svn-id: file:///svn/toku/tokudb@45903 c7de825b-a66e-492c-adef-691d508d4ae1
36 lines
1.3 KiB
CMake
36 lines
1.3 KiB
CMake
include_directories(${CMAKE_CURRENT_SOURCE_DIR})
|
|
|
|
set_property(DIRECTORY APPEND PROPERTY COMPILE_DEFINITIONS _GNU_SOURCE DONT_DEPRECATE_ERRNO)
|
|
|
|
set(both_bins
|
|
db-benchmark-test
|
|
scanscan
|
|
ptquery
|
|
txncommit
|
|
)
|
|
|
|
set(tokudbonly_bins
|
|
scanrace
|
|
multi-bench
|
|
db-verify
|
|
)
|
|
|
|
if(BDB_FOUND)
|
|
foreach(bdb_bin ${both_bins})
|
|
add_executable(${bdb_bin}-bdb ${bdb_bin})
|
|
set_property(TARGET ${bdb_bin}-bdb APPEND PROPERTY
|
|
COMPILE_DEFINITIONS "DIRSUF=bdb;TOKU_ALLOW_DEPRECATED;ENVDIR=\"${bdb_bin}.cc.bdb\"")
|
|
set_target_properties(${bdb_bin}-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(${bdb_bin}-bdb ${LIBTOKUPORTABILITY} ${BDB_LIBRARIES})
|
|
add_common_options_to_binary_targets(${bdb_bin}-bdb)
|
|
endforeach(bdb_bin)
|
|
endif()
|
|
|
|
foreach(tokudb_bin ${both_bins} ${tokudbonly_bins})
|
|
add_executable(${tokudb_bin}-tokudb ${tokudb_bin})
|
|
set_property(TARGET ${tokudb_bin}-tokudb APPEND PROPERTY
|
|
COMPILE_DEFINITIONS "TOKUDB;ENVDIR=\"${tokudb_bin}.cc.tdb\"")
|
|
target_link_libraries(${tokudb_bin}-tokudb ${LIBTOKUDB} ${LIBTOKUPORTABILITY})
|
|
add_common_options_to_binary_targets(${tokudb_bin}-tokudb)
|
|
endforeach(tokudb_bin)
|