cloudflare/ClickHouse
Publicmirrored fromhttps://github.com/cloudflare/ClickHouse
contrib/brotli-cmake/CMakeLists.txt
37lines · modecode
unknown
| 1 | set(BROTLI_SOURCE_DIR ${ClickHouse_SOURCE_DIR}/contrib/brotli/c) |
| 2 | set(BROTLI_BINARY_DIR ${ClickHouse_BINARY_DIR}/contrib/brotli/c) |
| 3 | |
| 4 | set(SRCS |
| 5 | ${BROTLI_SOURCE_DIR}/dec/bit_reader.c |
| 6 | ${BROTLI_SOURCE_DIR}/dec/state.c |
| 7 | ${BROTLI_SOURCE_DIR}/dec/huffman.c |
| 8 | ${BROTLI_SOURCE_DIR}/dec/decode.c |
| 9 | ${BROTLI_SOURCE_DIR}/enc/encode.c |
| 10 | ${BROTLI_SOURCE_DIR}/enc/dictionary_hash.c |
| 11 | ${BROTLI_SOURCE_DIR}/enc/cluster.c |
| 12 | ${BROTLI_SOURCE_DIR}/enc/entropy_encode.c |
| 13 | ${BROTLI_SOURCE_DIR}/enc/literal_cost.c |
| 14 | ${BROTLI_SOURCE_DIR}/enc/compress_fragment_two_pass.c |
| 15 | ${BROTLI_SOURCE_DIR}/enc/static_dict.c |
| 16 | ${BROTLI_SOURCE_DIR}/enc/compress_fragment.c |
| 17 | ${BROTLI_SOURCE_DIR}/enc/block_splitter.c |
| 18 | ${BROTLI_SOURCE_DIR}/enc/backward_references_hq.c |
| 19 | ${BROTLI_SOURCE_DIR}/enc/histogram.c |
| 20 | ${BROTLI_SOURCE_DIR}/enc/brotli_bit_stream.c |
| 21 | ${BROTLI_SOURCE_DIR}/enc/utf8_util.c |
| 22 | ${BROTLI_SOURCE_DIR}/enc/encoder_dict.c |
| 23 | ${BROTLI_SOURCE_DIR}/enc/backward_references.c |
| 24 | ${BROTLI_SOURCE_DIR}/enc/bit_cost.c |
| 25 | ${BROTLI_SOURCE_DIR}/enc/metablock.c |
| 26 | ${BROTLI_SOURCE_DIR}/enc/memory.c |
| 27 | ${BROTLI_SOURCE_DIR}/common/dictionary.c |
| 28 | ${BROTLI_SOURCE_DIR}/common/transform.c |
| 29 | ) |
| 30 | |
| 31 | add_library(brotli ${SRCS}) |
| 32 | |
| 33 | target_include_directories(brotli PUBLIC ${BROTLI_SOURCE_DIR}/include) |
| 34 | |
| 35 | if(M_LIBRARY) |
| 36 | target_link_libraries(brotli PRIVATE ${M_LIBRARY}) |
| 37 | endif() |