2022-05-29 01:28:56 +00:00
|
|
|
add_executable (pre_compressor compressor.cpp)
|
|
|
|
target_link_libraries(pre_compressor PUBLIC ch_contrib::zstd)
|
2022-03-24 19:45:54 +00:00
|
|
|
|
2022-07-21 03:09:05 +00:00
|
|
|
add_native_target (pre_compressor)
|
|
|
|
|
2022-03-24 19:45:54 +00:00
|
|
|
add_executable (decompressor decompressor.cpp)
|
2022-03-29 19:30:09 +00:00
|
|
|
target_link_libraries(decompressor PUBLIC ch_contrib::zstd)
|
2022-05-29 01:28:56 +00:00
|
|
|
|
|
|
|
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
|
2022-06-13 03:27:56 +00:00
|
|
|
COMMAND chmod +x compressor
|
2022-05-29 01:28:56 +00:00
|
|
|
)
|