mirror of
https://github.com/MariaDB/server.git
synced 2025-01-22 14:54:20 +01:00
31 lines
683 B
CMake
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)
|