mirror of
https://github.com/MariaDB/server.git
synced 2025-02-02 03:51:50 +01:00
bd63072bdf
for 5485: - remove icc handling stuff from cmake - clean up remaining cmake files - create libtokudb_static.a in a cleaner way using cmake OBJECT libs (requires cmake 2.8.9) - use POSITION_INDEPENDENT_CODE property instead of manually setting -fPIC for 5368: - fix compilation failures due to small differences between gcc and clang, mostly in tests - use toku_fileids_are_equal instead of memcmp to compare fileids (closes #5505) - create dummy implementation of partitioned_counter for osx (quick fix for, and closes #5506) - add mutex->valid bit under TOKU_PTHREAD_DEBUG - initialize mutex of DB_TXN created during recovery for 2PC (closes #5507) git-svn-id: file:///svn/toku/tokudb@48024 c7de825b-a66e-492c-adef-691d508d4ae1
63 lines
1.7 KiB
CMake
63 lines
1.7 KiB
CMake
cmake_minimum_required(VERSION 2.8.9 FATAL_ERROR)
|
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake_modules")
|
|
|
|
project(TokuDB)
|
|
|
|
# suppress -rdynamic
|
|
set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
|
|
set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")
|
|
|
|
include(TokuFeatureDetection)
|
|
include(TokuSetupCompiler)
|
|
include(TokuSetupCTest)
|
|
include(TokuThirdParty)
|
|
|
|
set(TOKU_CMAKE_SCRIPT_DIR "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
|
include(TokuMergeLibs)
|
|
|
|
## need a way to change the name of libs we build
|
|
set(LIBTOKUPORTABILITY "tokuportability" CACHE STRING "Name of libtokuportability.so")
|
|
set(LIBTOKUDB "tokudb" CACHE STRING "Name of libtokudb.so")
|
|
|
|
include_directories(
|
|
${VALGRIND_INCLUDE_DIR}
|
|
)
|
|
include_directories(
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
${CMAKE_CURRENT_SOURCE_DIR}/toku_include
|
|
${CMAKE_CURRENT_SOURCE_DIR}/portability
|
|
${CMAKE_CURRENT_SOURCE_DIR} ## so you can include <ft/ft-ops.h> from inside src/
|
|
${CMAKE_CURRENT_BINARY_DIR} ## for logging code
|
|
)
|
|
## include where config.h will be generated
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR}/toku_include)
|
|
|
|
## build db.h and include where it will be generated
|
|
add_subdirectory(buildheader)
|
|
include_directories(BEFORE ${CMAKE_CURRENT_BINARY_DIR}/buildheader)
|
|
|
|
## default includes and libraries
|
|
include_directories(SYSTEM
|
|
/usr/local/include
|
|
${ZLIB_INCLUDE_DIRS}
|
|
)
|
|
|
|
## add subdirectories
|
|
add_subdirectory(portability)
|
|
add_subdirectory(ft)
|
|
add_subdirectory(src)
|
|
add_subdirectory(utils)
|
|
add_subdirectory(db-benchmark-test)
|
|
|
|
## subdirectories that just install things
|
|
add_subdirectory(include)
|
|
add_subdirectory(toku_include)
|
|
add_subdirectory(examples)
|
|
|
|
install(
|
|
FILES README
|
|
DESTINATION .
|
|
)
|
|
|
|
## build tags
|
|
include(TokuBuildTagDatabases)
|