1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
|
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)
|