You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
30 lines
737 B
CMake
30 lines
737 B
CMake
include_directories(${ENGINE_COMMON_INCLUDES} ${SNAPPY_INCLUDE_DIR})
|
|
|
|
# hack for lz4 duplicate header
|
|
get_property(
|
|
dirs
|
|
DIRECTORY
|
|
PROPERTY INCLUDE_DIRECTORIES
|
|
)
|
|
list(REMOVE_ITEM dirs ${CMAKE_SOURCE_DIR}/include/providers)
|
|
set_property(DIRECTORY PROPERTY INCLUDE_DIRECTORIES "${dirs}")
|
|
|
|
set(compress_LIB_SRCS idbcompress.cpp)
|
|
|
|
add_definitions(-DNDEBUG)
|
|
|
|
columnstore_library(compress ${compress_LIB_SRCS})
|
|
add_dependencies(compress loggingcpp external_boost)
|
|
|
|
target_link_libraries(compress ${SNAPPY_LIBRARIES})
|
|
if(HAVE_LZ4)
|
|
message_once(STATUS "LINK WITH LZ4")
|
|
target_link_libraries(compress ${LZ4_LIBRARIES})
|
|
endif()
|
|
|
|
install(
|
|
TARGETS compress
|
|
DESTINATION ${ENGINE_LIBDIR}
|
|
COMPONENT columnstore-engine
|
|
)
|