mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
18 lines
561 B
CMake
18 lines
561 B
CMake
add_executable (pre_compressor compressor.cpp)
|
|
target_link_libraries(pre_compressor PUBLIC ch_contrib::zstd)
|
|
|
|
add_native_target (pre_compressor)
|
|
|
|
add_executable (decompressor decompressor.cpp)
|
|
target_link_libraries(decompressor PUBLIC ch_contrib::zstd)
|
|
|
|
add_custom_target (compressor)
|
|
add_dependencies (compressor pre_compressor decompressor)
|
|
|
|
add_custom_command (TARGET compressor
|
|
POST_BUILD
|
|
COMMAND cat pre_compressor decompressor > compressor
|
|
COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/post_build.sh >> compressor
|
|
COMMAND chmod +x compressor
|
|
)
|