ClickHouse/programs/self-extracting/CMakeLists.txt

19 lines
648 B
CMake
Raw Normal View History

2022-07-21 03:09:05 +00:00
if (NOT(
CMAKE_HOST_SYSTEM_NAME STREQUAL CMAKE_SYSTEM_NAME
AND CMAKE_HOST_SYSTEM_PROCESSOR STREQUAL CMAKE_SYSTEM_PROCESSOR
)
)
set (COMPRESSOR "${PROJECT_BINARY_DIR}/native/utils/self-extracting-executable/pre_compressor")
set (DECOMPRESSOR "--decompressor=${PROJECT_BINARY_DIR}/utils/self-extracting-executable/decompressor")
2022-07-21 03:09:05 +00:00
else ()
set (COMPRESSOR "${PROJECT_BINARY_DIR}/utils/self-extracting-executable/compressor")
2022-07-21 03:09:05 +00:00
endif ()
add_custom_target (self-extracting ALL
2022-06-29 10:47:21 +00:00
${CMAKE_COMMAND} -E remove clickhouse
2022-07-21 03:09:05 +00:00
COMMAND ${COMPRESSOR} ${DECOMPRESSOR} clickhouse ../clickhouse
DEPENDS clickhouse compressor
)