mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 07:31:57 +00:00
add dedicated cmake files for compression libraries
This commit is contained in:
parent
9cfddff290
commit
7c9acb9f53
47
contrib/density-cmake/CMakeLists.txt
Normal file
47
contrib/density-cmake/CMakeLists.txt
Normal file
@ -0,0 +1,47 @@
|
||||
SET (USE_INTERNAL_DENSITY_LIBRARY 1)
|
||||
SET (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/density")
|
||||
|
||||
# cd contrib/density
|
||||
# find . -name '*.c' | grep -vP 'deprecated|legacy' | sort | sed 's/^\./ ${LIBRARY_DIR}/'
|
||||
SET (Sources
|
||||
${LIBRARY_DIR}/src/algorithms/algorithms.c
|
||||
${LIBRARY_DIR}/src/algorithms/chameleon/core/chameleon_decode.c
|
||||
${LIBRARY_DIR}/src/algorithms/chameleon/core/chameleon_encode.c
|
||||
${LIBRARY_DIR}/src/algorithms/cheetah/core/cheetah_decode.c
|
||||
${LIBRARY_DIR}/src/algorithms/cheetah/core/cheetah_encode.c
|
||||
${LIBRARY_DIR}/src/algorithms/dictionaries.c
|
||||
${LIBRARY_DIR}/src/algorithms/lion/core/lion_decode.c
|
||||
${LIBRARY_DIR}/src/algorithms/lion/core/lion_encode.c
|
||||
${LIBRARY_DIR}/src/algorithms/lion/forms/lion_form_model.c
|
||||
${LIBRARY_DIR}/src/buffers/buffer.c
|
||||
${LIBRARY_DIR}/src/globals.c
|
||||
${LIBRARY_DIR}/src/structure/header.c
|
||||
)
|
||||
|
||||
# cd contrib/density
|
||||
# find . -name '*.h' | grep -vP 'deprecated|legacy' | sort | sed 's/^\./ ${LIBRARY_DIR}/'
|
||||
SET (Headers
|
||||
${LIBRARY_DIR}/src/algorithms/algorithms.h
|
||||
${LIBRARY_DIR}/src/algorithms/chameleon/chameleon.h
|
||||
${LIBRARY_DIR}/src/algorithms/chameleon/core/chameleon_decode.h
|
||||
${LIBRARY_DIR}/src/algorithms/chameleon/core/chameleon_encode.h
|
||||
${LIBRARY_DIR}/src/algorithms/chameleon/dictionary/chameleon_dictionary.h
|
||||
${LIBRARY_DIR}/src/algorithms/cheetah/cheetah.h
|
||||
${LIBRARY_DIR}/src/algorithms/cheetah/core/cheetah_decode.h
|
||||
${LIBRARY_DIR}/src/algorithms/cheetah/core/cheetah_encode.h
|
||||
${LIBRARY_DIR}/src/algorithms/cheetah/dictionary/cheetah_dictionary.h
|
||||
${LIBRARY_DIR}/src/algorithms/dictionaries.h
|
||||
${LIBRARY_DIR}/src/algorithms/lion/core/lion_decode.h
|
||||
${LIBRARY_DIR}/src/algorithms/lion/core/lion_encode.h
|
||||
${LIBRARY_DIR}/src/algorithms/lion/dictionary/lion_dictionary.h
|
||||
${LIBRARY_DIR}/src/algorithms/lion/forms/lion_form_model.h
|
||||
${LIBRARY_DIR}/src/algorithms/lion/lion.h
|
||||
${LIBRARY_DIR}/src/buffers/buffer.h
|
||||
${LIBRARY_DIR}/src/density_api.h
|
||||
${LIBRARY_DIR}/src/globals.h
|
||||
${LIBRARY_DIR}/src/structure/header.h
|
||||
)
|
||||
|
||||
ADD_LIBRARY(density ${Sources} ${Headers})
|
||||
|
||||
target_include_directories (density PUBLIC ${LIBRARY_DIR})
|
19
contrib/lizard-cmake/CMakeLists.txt
Normal file
19
contrib/lizard-cmake/CMakeLists.txt
Normal file
@ -0,0 +1,19 @@
|
||||
SET (USE_INTERNAL_LIZARD_LIBRARY 1)
|
||||
SET (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/lizard")
|
||||
|
||||
SET (Sources
|
||||
"${LIBRARY_DIR}/lib/lizard_decompress.c"
|
||||
"${LIBRARY_DIR}/lib/lizard_compress.c"
|
||||
"${LIBRARY_DIR}/lib/lizard_frame.c"
|
||||
"${LIBRARY_DIR}/lib/xxhash/xxhash.c"
|
||||
)
|
||||
|
||||
SET (Headers
|
||||
"${LIBRARY_DIR}/lib/lizard_compress.h"
|
||||
"${LIBRARY_DIR}/lib/lizard_common.h"
|
||||
"${LIBRARY_DIR}/lib/lizard_frame.h"
|
||||
)
|
||||
|
||||
ADD_LIBRARY(lizard ${Sources} ${Headers})
|
||||
|
||||
target_include_directories (lizard PUBLIC ${LIBRARY_DIR})
|
21
contrib/lzsse-cmake/CMakeLists.txt
Normal file
21
contrib/lzsse-cmake/CMakeLists.txt
Normal file
@ -0,0 +1,21 @@
|
||||
SET (USE_INTERNAL_LZSSE_LIBRARY 1)
|
||||
SET (LIBRARY_DIR "${ClickHouse_SOURCE_DIR}/contrib/lzsse")
|
||||
|
||||
SET (Sources
|
||||
"${LIBRARY_DIR}/lzsse2/lzsse2.cpp"
|
||||
"${LIBRARY_DIR}/lzsse4/lzsse4.cpp"
|
||||
"${LIBRARY_DIR}/lzsse8/lzsse8.cpp"
|
||||
)
|
||||
|
||||
SET (Headers
|
||||
"${LIBRARY_DIR}/lzsse2/lzsse2.h"
|
||||
"${LIBRARY_DIR}/lzsse4/lzsse4.h"
|
||||
"${LIBRARY_DIR}/lzsse8/lzsse8.h"
|
||||
"${LIBRARY_DIR}/lzsse2/lzsse2_platform.h"
|
||||
"${LIBRARY_DIR}/lzsse4/lzsse4_platform.h"
|
||||
"${LIBRARY_DIR}/lzsse8/lzsse8_platform.h"
|
||||
)
|
||||
|
||||
ADD_LIBRARY(lzsse ${Sources} ${Headers})
|
||||
|
||||
target_include_directories (lzsse PUBLIC ${LIBRARY_DIR})
|
Loading…
Reference in New Issue
Block a user