2011-02-21 22:38:06 +00:00
|
|
|
SET(TOKUDB_VERSION $ENV{TOKUDB_VERSION})
|
2011-03-27 23:43:07 +00:00
|
|
|
SET(TOKUFRACTALTREE_RELEASE_DIR $ENV{TOKUFRACTALTREE})
|
2011-02-21 22:38:06 +00:00
|
|
|
SET(TOKUFRACTALTREE_LIBNAME $ENV{TOKUFRACTALTREE_LIBNAME})
|
2012-01-03 18:38:29 +00:00
|
|
|
SET(TOKUPORTABILITY_LIBNAME $ENV{TOKUPORTABILITY_LIBNAME})
|
2011-02-21 22:38:06 +00:00
|
|
|
|
|
|
|
ADD_DEFINITIONS("-DTOKUDB_VERSION=\"${TOKUDB_VERSION}\"")
|
2011-03-27 23:43:07 +00:00
|
|
|
INCLUDE_DIRECTORIES(${TOKUFRACTALTREE_RELEASE_DIR}/include)
|
|
|
|
FIND_LIBRARY(TOKUFRACTALTREE_LIB NAMES ${TOKUFRACTALTREE_LIBNAME} HINTS ${TOKUFRACTALTREE_RELEASE_DIR}/lib)
|
2012-01-03 18:38:29 +00:00
|
|
|
FIND_LIBRARY(TOKUPORTABILITY_LIB NAMES ${TOKUPORTABILITY_LIBNAME} HINTS ${TOKUFRACTALTREE_RELEASE_DIR}/lib)
|
2011-02-21 22:38:06 +00:00
|
|
|
|
|
|
|
SET(TOKUDB_PLUGIN_DYNAMIC "ha_tokudb")
|
|
|
|
SET(TOKUDB_SOURCES hatoku_hton.cc hatoku_cmp.cc ha_tokudb.cc)
|
2011-03-27 23:43:07 +00:00
|
|
|
MYSQL_ADD_PLUGIN(tokudb ${TOKUDB_SOURCES} STORAGE_ENGINE MODULE_ONLY LINK_LIBRARIES ${TOKUFRACTALTREE_LIB} ${TOKUPORTABILITY_LIB})
|