mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-04 21:42:39 +00:00
15 lines
478 B
CMake
15 lines
478 B
CMake
|
option(ENABLE_SQIDS "Enable sqids support" ${ENABLE_LIBRARIES})
|
||
|
if ((NOT ENABLE_SQIDS))
|
||
|
message (STATUS "Not using sqids")
|
||
|
return()
|
||
|
endif()
|
||
|
|
||
|
set (SQIDS_SOURCE_DIR "${ClickHouse_SOURCE_DIR}/contrib/sqids-cpp")
|
||
|
set (SQIDS_INCLUDE_DIR "${SQIDS_SOURCE_DIR}/include")
|
||
|
|
||
|
add_library(_sqids INTERFACE)
|
||
|
target_include_directories(_sqids SYSTEM INTERFACE ${SQIDS_INCLUDE_DIR})
|
||
|
|
||
|
add_library(ch_contrib::sqids ALIAS _sqids)
|
||
|
target_compile_definitions(_sqids INTERFACE ENABLE_SQIDS)
|