2013-04-17 06:02:16 +02:00
|
|
|
IF(DEFINED ENV{TOKUDB_VERSION})
|
|
|
|
SET(TOKUDB_VERSION $ENV{TOKUDB_VERSION})
|
|
|
|
ADD_DEFINITIONS("-DTOKUDB_VERSION=\"${TOKUDB_VERSION}\"")
|
|
|
|
ENDIF()
|
|
|
|
|
|
|
|
IF(DEFINED ENV{TOKUDB_PATCHES})
|
|
|
|
SET(TOKUDB_PATCHES $ENV{TOKUDB_PATCHES})
|
|
|
|
ADD_DEFINITIONS("-DTOKUDB_PATCHES=${TOKUDB_PATCHES}")
|
|
|
|
ENDIF()
|
|
|
|
|
2013-04-27 19:54:48 +02:00
|
|
|
ADD_SUBDIRECTORY(ft-index)
|
|
|
|
|
|
|
|
# TODO: clean up includes in ft-index
|
|
|
|
INCLUDE_DIRECTORIES(ft-index)
|
|
|
|
INCLUDE_DIRECTORIES(ft-index/include)
|
|
|
|
INCLUDE_DIRECTORIES(ft-index/portability)
|
|
|
|
INCLUDE_DIRECTORIES(ft-index/toku_include)
|
|
|
|
INCLUDE_DIRECTORIES(ft-index/util)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index)
|
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index/buildheader)
|
2013-04-27 20:38:20 +02:00
|
|
|
INCLUDE_DIRECTORIES(${CMAKE_CURRENT_BINARY_DIR}/ft-index/toku_include)
|
2013-04-17 06:02:04 +02:00
|
|
|
|
|
|
|
SET(TOKUDB_PLUGIN_DYNAMIC "ha_tokudb")
|
2013-04-17 06:02:11 +02:00
|
|
|
SET(TOKUDB_SOURCES ha_tokudb.cc)
|
2013-04-27 19:54:48 +02:00
|
|
|
MYSQL_ADD_PLUGIN(tokudb ${TOKUDB_SOURCES} STORAGE_ENGINE MODULE_ONLY
|
2013-04-27 20:22:31 +02:00
|
|
|
LINK_LIBRARIES tokufractaltree_static tokuportability_static z stdc++)
|
2013-04-17 06:02:14 +02:00
|
|
|
SET_PROPERTY(TARGET tokudb APPEND PROPERTY LINK_FLAGS_RELEASE "-flto -fuse-linker-plugin")
|
2013-09-17 19:02:58 +02:00
|
|
|
SET_PROPERTY(TARGET tokudb APPEND PROPERTY LINK_FLAGS_RELWITHDEBINFO "-flto -fuse-linker-plugin")
|