mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 21:51:57 +00:00
154ea47156
* Fix link in split mode * clean * Fix link validate-odbc-connection-string * Fix includes
18 lines
860 B
CMake
18 lines
860 B
CMake
include(${ClickHouse_SOURCE_DIR}/cmake/dbms_glob_sources.cmake)
|
|
add_headers_and_sources(clickhouse_compression .)
|
|
add_library(clickhouse_compression ${LINK_MODE} ${clickhouse_compression_headers} ${clickhouse_compression_sources})
|
|
target_link_libraries(clickhouse_compression PRIVATE clickhouse_parsers clickhouse_common_io ${ZSTD_LIBRARY} ${LZ4_LIBRARY})
|
|
target_include_directories(clickhouse_compression PUBLIC ${DBMS_INCLUDE_DIR})
|
|
target_include_directories(clickhouse_compression SYSTEM PUBLIC ${PCG_RANDOM_INCLUDE_DIR})
|
|
|
|
if (NOT USE_INTERNAL_LZ4_LIBRARY)
|
|
target_include_directories(clickhouse_compression SYSTEM BEFORE PRIVATE ${LZ4_INCLUDE_DIR})
|
|
endif ()
|
|
if (NOT USE_INTERNAL_ZSTD_LIBRARY)
|
|
target_include_directories(clickhouse_compression SYSTEM BEFORE PRIVATE ${ZSTD_INCLUDE_DIR})
|
|
endif ()
|
|
|
|
if(ENABLE_TESTS)
|
|
add_subdirectory(tests)
|
|
endif()
|