mariadb/storage/tokudb/PerconaFT/ftcxx/CMakeLists.txt
Sergei Golubchik 2c8c652978 5.6.26-74.0
2015-10-26 12:57:57 +01:00

31 lines
683 B
CMake

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fexceptions -Wno-deprecated-declarations")
if (APPLE)
## osx is weird about weak symbols
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-flat_namespace,-undefined,dynamic_lookup")
endif (APPLE)
add_library(ftcxx STATIC
buffer
cursor
db_env
malloc_utils
)
add_dependencies(ftcxx install_tdb_h)
if (NOT DEFINED MYSQL_PROJECT_NAME_DOCSTRING)
install(
TARGETS ftcxx
DESTINATION ${INSTALL_LIBDIR}
COMPONENT tokukv_libs_static
)
file(GLOB ftcxx_headers "*.hpp")
install(
FILES ${ftcxx_headers}
DESTINATION include/ftcxx
COMPONENT tokukv_headers
)
endif ()
add_subdirectory(tests)